repo stringlengths 7 63 | file_url stringlengths 81 284 | file_path stringlengths 5 200 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:02:33 2026-01-05 05:24:06 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Renderer/Markdown/DividerRenderer.php | src/Blocks/Renderer/Markdown/DividerRenderer.php | <?php
namespace Notion\Blocks\Renderer\Markdown;
use Notion\Blocks\BlockInterface;
use Notion\Blocks\Divider;
use Notion\Blocks\Renderer\BlockRendererInterface;
use Notion\Blocks\Renderer\MarkdownRenderer;
final class DividerRenderer implements BlockRendererInterface
{
public static function render(BlockInterfac... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Renderer/Markdown/Heading1Renderer.php | src/Blocks/Renderer/Markdown/Heading1Renderer.php | <?php
namespace Notion\Blocks\Renderer\Markdown;
use Notion\Blocks\BlockInterface;
use Notion\Blocks\Heading1;
use Notion\Blocks\Renderer\BlockRendererInterface;
use Notion\Blocks\Renderer\MarkdownRenderer;
final class Heading1Renderer implements BlockRendererInterface
{
public static function render(BlockInterf... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Renderer/Markdown/BookmarkRenderer.php | src/Blocks/Renderer/Markdown/BookmarkRenderer.php | <?php
namespace Notion\Blocks\Renderer\Markdown;
use Notion\Blocks\BlockInterface;
use Notion\Blocks\Bookmark;
use Notion\Blocks\Renderer\BlockRendererInterface;
use Notion\Blocks\Renderer\MarkdownRenderer;
final class BookmarkRenderer implements BlockRendererInterface
{
public static function render(BlockInterf... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Renderer/Markdown/CodeRenderer.php | src/Blocks/Renderer/Markdown/CodeRenderer.php | <?php
namespace Notion\Blocks\Renderer\Markdown;
use Notion\Blocks\BlockInterface;
use Notion\Blocks\Code;
use Notion\Blocks\Renderer\BlockRendererInterface;
use Notion\Blocks\Renderer\MarkdownRenderer;
final class CodeRenderer implements BlockRendererInterface
{
public static function render(BlockInterface $blo... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Renderer/Markdown/QuoteRenderer.php | src/Blocks/Renderer/Markdown/QuoteRenderer.php | <?php
namespace Notion\Blocks\Renderer\Markdown;
use Notion\Blocks\BlockInterface;
use Notion\Blocks\Quote;
use Notion\Blocks\Renderer\BlockRendererInterface;
use Notion\Blocks\Renderer\MarkdownRenderer;
final class QuoteRenderer implements BlockRendererInterface
{
public static function render(BlockInterface $b... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Renderer/Markdown/ToggleRenderer.php | src/Blocks/Renderer/Markdown/ToggleRenderer.php | <?php
namespace Notion\Blocks\Renderer\Markdown;
use Notion\Blocks\BlockInterface;
use Notion\Blocks\Toggle;
use Notion\Blocks\Renderer\BlockRendererInterface;
use Notion\Blocks\Renderer\MarkdownRenderer;
use Notion\Common\RichText;
final class ToggleRenderer implements BlockRendererInterface
{
public static fun... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Renderer/Markdown/ImageRenderer.php | src/Blocks/Renderer/Markdown/ImageRenderer.php | <?php
namespace Notion\Blocks\Renderer\Markdown;
use Notion\Blocks\BlockInterface;
use Notion\Blocks\Image;
use Notion\Blocks\Renderer\BlockRendererInterface;
use Notion\Blocks\Renderer\MarkdownRenderer;
final class ImageRenderer implements BlockRendererInterface
{
public static function render(BlockInterface $b... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Renderer/Markdown/EquationRenderer.php | src/Blocks/Renderer/Markdown/EquationRenderer.php | <?php
namespace Notion\Blocks\Renderer\Markdown;
use Notion\Blocks\BlockInterface;
use Notion\Blocks\EquationBlock;
use Notion\Blocks\Renderer\BlockRendererInterface;
use Notion\Blocks\Renderer\MarkdownRenderer;
final class EquationRenderer implements BlockRendererInterface
{
public static function render(BlockI... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Blocks/Renderer/Markdown/ParagraphRenderer.php | src/Blocks/Renderer/Markdown/ParagraphRenderer.php | <?php
namespace Notion\Blocks\Renderer\Markdown;
use Notion\Blocks\BlockInterface;
use Notion\Blocks\Paragraph;
use Notion\Blocks\Renderer\BlockRendererInterface;
use Notion\Blocks\Renderer\MarkdownRenderer;
final class ParagraphRenderer implements BlockRendererInterface
{
public static function render(BlockInte... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Users/Client.php | src/Users/Client.php | <?php
namespace Notion\Users;
use Notion\Configuration;
use Notion\Infrastructure\Http;
/** @psalm-import-type UserJson from User */
class Client
{
/**
* @internal Use `\Notion\Notion::pages()` instead
*/
public function __construct(
private readonly Configuration $config,
) {
}
... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Users/User.php | src/Users/User.php | <?php
namespace Notion\Users;
/**
* @psalm-import-type PersonJson from Person
* @psalm-import-type BotJson from Bot
*
* @psalm-type UserJson = array{
* object: "user",
* id: string,
* name?: string,
* avatar_url?: string,
* type?: "person"|"bot",
* person?: PersonJson,
* bot?: B... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Users/UserType.php | src/Users/UserType.php | <?php
namespace Notion\Users;
enum UserType: string
{
case Person = "person";
case Bot = "bot";
}
| php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Users/Bot.php | src/Users/Bot.php | <?php
namespace Notion\Users;
/**
* @psalm-type BotJson = array<empty, empty>
*
* @psalm-immutable
*/
class Bot
{
private function __construct()
{
}
/**
* @param BotJson $array
*
* @psalm-suppress PossiblyUnusedParam
*/
public static function fromArray(array $array): self
... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Users/Person.php | src/Users/Person.php | <?php
namespace Notion\Users;
/**
* @psalm-type PersonJson = array{email: string}
*
* @psalm-immutable
*/
class Person
{
private function __construct(
public readonly string $email,
) {
}
/** @param PersonJson $array */
public static function fromArray(array $array): self
{
... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Exceptions/ConflictException.php | src/Exceptions/ConflictException.php | <?php
namespace Notion\Exceptions;
class ConflictException extends ApiException
{
}
| php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Exceptions/IconException.php | src/Exceptions/IconException.php | <?php
namespace Notion\Exceptions;
class IconException extends NotionException
{
public static function bothNull(): self
{
return new self("Icon must be either emoji or file, not both null.");
}
public static function bothSet(): self
{
return new self("Icon must be either emoji or... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Exceptions/ColumnListException.php | src/Exceptions/ColumnListException.php | <?php
namespace Notion\Exceptions;
class ColumnListException extends BlockException
{
public static function childNotColumn(): self
{
return new self("Column lists accept only columns as children.");
}
}
| php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Exceptions/ApiException.php | src/Exceptions/ApiException.php | <?php
namespace Notion\Exceptions;
use Psr\Http\Message\ResponseInterface;
/**
* Exception from Notion API
*/
class ApiException extends NotionException
{
public readonly string $notionCode;
public readonly ResponseInterface $response;
final public function __construct(
string $message,
... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Exceptions/RelationException.php | src/Exceptions/RelationException.php | <?php
namespace Notion\Exceptions;
class RelationException extends NotionException
{
public static function emptySyncedPropertyName(): self
{
return new self("Bidirectional relations must provide 'synced property name'.");
}
public static function emptySyncedPropertyId(): self
{
r... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Exceptions/DatabaseException.php | src/Exceptions/DatabaseException.php | <?php
namespace Notion\Exceptions;
class DatabaseException extends NotionException
{
public static function internalCover(): self
{
return new self("Internal cover image is not supported.");
}
public static function noTitleProperty(): self
{
return new self("A database must have a... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Exceptions/BlockException.php | src/Exceptions/BlockException.php | <?php
namespace Notion\Exceptions;
use Notion\Blocks\BlockType;
use Notion\Exceptions\NotionException;
class BlockException extends NotionException
{
public static function wrongType(BlockType $expectedType): self
{
return new self("Block must be of type '{$expectedType->value}'");
}
public ... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Exceptions/ColumnException.php | src/Exceptions/ColumnException.php | <?php
namespace Notion\Exceptions;
class ColumnException extends BlockException
{
public static function columnInsideColumn(): self
{
return new self("Columns should not contain other columns.");
}
}
| php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Exceptions/HeadingException.php | src/Exceptions/HeadingException.php | <?php
namespace Notion\Exceptions;
class HeadingException extends BlockException
{
public static function untogglifyWithChildren(): self
{
return new self("Heading cannot be un-togglified with children. Please remove child blocks");
}
}
| php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Exceptions/NotionException.php | src/Exceptions/NotionException.php | <?php
namespace Notion\Exceptions;
/**
* Library parent exception
*
* All other exceptions from this library are derived from this class.
*/
class NotionException extends \Exception
{
}
| php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Pages/Page.php | src/Pages/Page.php | <?php
namespace Notion\Pages;
use DateTimeImmutable;
use Notion\Common\Date;
use Notion\Common\Emoji;
use Notion\Common\File;
use Notion\Common\Icon;
use Notion\Pages\Properties\PropertyCollection;
use Notion\Pages\Properties\PropertyFactory;
use Notion\Pages\Properties\PropertyInterface;
use Notion\Pages\Properties\... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Pages/Client.php | src/Pages/Client.php | <?php
namespace Notion\Pages;
use Notion\Blocks\BlockInterface;
use Notion\Configuration;
use Notion\Infrastructure\Http;
use Notion\Pages\Properties\CreatedBy;
use Notion\Pages\Properties\CreatedTime;
use Notion\Pages\Properties\Formula;
use Notion\Pages\Properties\LastEditedBy;
use Notion\Pages\Properties\LastEdite... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Pages/PageParentType.php | src/Pages/PageParentType.php | <?php
namespace Notion\Pages;
enum PageParentType: string
{
case Page = "page_id";
case Database = "database_id";
case Workspace = "workspace";
case Block = "block_id";
}
| php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Pages/PageParent.php | src/Pages/PageParent.php | <?php
namespace Notion\Pages;
/**
* @psalm-type PageParentJson = array{
* type: "page_id"|"database_id"|"workspace"|"block_id",
* page_id?: string,
* database_id?: string,
* workspace?: true,
* block_id?: string,
* }
*
* @psalm-immutable
*/
class PageParent
{
private function __... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Pages/Properties/Number.php | src/Pages/Properties/Number.php | <?php
namespace Notion\Pages\Properties;
/**
* @psalm-type NumberJson = array{
* id: string,
* type: "number",
* number: int|float|null,
* }
*
* @psalm-immutable
*/
class Number implements PropertyInterface
{
private function __construct(
private readonly PropertyMetadata $metadata,... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Pages/Properties/CreatedTime.php | src/Pages/Properties/CreatedTime.php | <?php
namespace Notion\Pages\Properties;
use DateTimeImmutable;
use Notion\Common\Date;
/**
* @psalm-type CreatedTimeJson = array{
* id: string,
* type: "created_time",
* created_time: string,
* }
*
* @psalm-immutable
*/
class CreatedTime implements PropertyInterface
{
private function __c... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Pages/Properties/Unknown.php | src/Pages/Properties/Unknown.php | <?php
namespace Notion\Pages\Properties;
/**
* @psalm-type UnknownJson = array{
* id: string,
* type: string
* }
*
* @psalm-immutable
*/
class Unknown implements PropertyInterface
{
private function __construct(
private readonly PropertyMetadata $metadata,
private readonly array $... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Pages/Properties/PropertyInterface.php | src/Pages/Properties/PropertyInterface.php | <?php
namespace Notion\Pages\Properties;
/** @psalm-immutable */
interface PropertyInterface
{
/** @internal */
public static function fromArray(array $array): self;
/** @internal */
public function toArray(): array;
public function metadata(): PropertyMetadata;
}
| php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Pages/Properties/UniqueId.php | src/Pages/Properties/UniqueId.php | <?php
namespace Notion\Pages\Properties;
/**
* @psalm-type UniqueIdJson = array{
* id: string,
* type: "unique_id",
* unique_id: array{
* number: int,
* prefix: string|null,
* },
* }
*
* @psalm-immutable
*/
class UniqueId implements PropertyInterface
{
private func... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Pages/Properties/Checkbox.php | src/Pages/Properties/Checkbox.php | <?php
namespace Notion\Pages\Properties;
/**
* @psalm-type CheckboxJson = array{
* id: string,
* type: "checkbox",
* checkbox: bool,
* }
*
* @psalm-immutable
*/
class Checkbox implements PropertyInterface
{
private function __construct(
private readonly PropertyMetadata $metadata,
... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Pages/Properties/PropertyMetadata.php | src/Pages/Properties/PropertyMetadata.php | <?php
namespace Notion\Pages\Properties;
/**
* @psalm-type PropertyMetadataJson = array{ id: string, type: string, ... }
*
* @psalm-immutable
*/
class PropertyMetadata
{
private function __construct(
public readonly string $id,
public readonly PropertyType $type,
private readonly strin... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Pages/Properties/CreatedBy.php | src/Pages/Properties/CreatedBy.php | <?php
namespace Notion\Pages\Properties;
use Notion\Users\User;
/**
* @psalm-import-type UserJson from \Notion\Users\User
*
* @psalm-type CreatedByJson = array{
* id: string,
* type: "created_by",
* "created_by": UserJson,
* }
*
* @psalm-immutable
*/
class CreatedBy implements PropertyInterf... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Pages/Properties/Date.php | src/Pages/Properties/Date.php | <?php
namespace Notion\Pages\Properties;
use DateTimeImmutable;
use Notion\Common\Date as CommonDate;
/**
* @psalm-type DateJson = array{
* id: string,
* type: "date",
* date: array{
* start: string,
* end?: string,
* }|null,
* }
*
* @psalm-immutable
*/
class Date imp... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Pages/Properties/LastEditedTime.php | src/Pages/Properties/LastEditedTime.php | <?php
namespace Notion\Pages\Properties;
use DateTimeImmutable;
use Notion\Common\Date;
/**
* @psalm-type LastEditedTimeJson = array{
* id: string,
* type: "last_edited_time",
* last_edited_time: string,
* }
*
* @psalm-immutable
*/
class LastEditedTime implements PropertyInterface
{
privat... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Pages/Properties/PhoneNumber.php | src/Pages/Properties/PhoneNumber.php | <?php
namespace Notion\Pages\Properties;
/**
* @psalm-type PhoneNumberJson = array{
* id: string,
* type: "phone_number",
* phone_number: string|null,
* }
*
* @psalm-immutable
*/
class PhoneNumber implements PropertyInterface
{
private function __construct(
private readonly Property... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Pages/Properties/People.php | src/Pages/Properties/People.php | <?php
namespace Notion\Pages\Properties;
use Notion\Users\User;
/**
* @psalm-import-type UserJson from \Notion\Users\User
*
* @psalm-type PeopleJson = array{
* id: string,
* type: "people",
* people: UserJson[],
* }
*
* @psalm-immutable
*/
class People implements PropertyInterface
{
/** ... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Pages/Properties/Formula.php | src/Pages/Properties/Formula.php | <?php
namespace Notion\Pages\Properties;
use DateTimeImmutable;
use Notion\Common\Date;
/**
* @psalm-type FormulaJson = array{
* id: string,
* type: "formula",
* formula: array{
* type: "string"|"number"|"boolean"|"date",
* string?: string,
* number?: int|float,
* ... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Pages/Properties/Email.php | src/Pages/Properties/Email.php | <?php
namespace Notion\Pages\Properties;
/**
* @psalm-type EmailJson = array{
* id: string,
* type: "email",
* email: string|null,
* }
*
* @psalm-immutable
*/
class Email implements PropertyInterface
{
private function __construct(
private readonly PropertyMetadata $metadata,
... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Pages/Properties/MultiSelect.php | src/Pages/Properties/MultiSelect.php | <?php
namespace Notion\Pages\Properties;
use Notion\Databases\Properties\SelectOption;
/**
* @psalm-import-type SelectOptionJson from SelectOption
*
* @psalm-type MultiSelectJson = array{
* id: string,
* type: "multi_select",
* multi_select: SelectOptionJson[],
* }
*
* @psalm-immutable
*/
cl... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Pages/Properties/PropertyCollection.php | src/Pages/Properties/PropertyCollection.php | <?php
namespace Notion\Pages\Properties;
/** @psalm-immutable */
final class PropertyCollection
{
/**
* @param array<string, PropertyInterface> $properties
*/
private function __construct(
private readonly array $properties,
) {
}
/**
* @param array<string, PropertyInterfac... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Pages/Properties/Url.php | src/Pages/Properties/Url.php | <?php
namespace Notion\Pages\Properties;
/**
* @psalm-type UrlJson = array{
* id: string,
* type: "url",
* url: string|null,
* }
*
* @psalm-immutable
*/
class Url implements PropertyInterface
{
private function __construct(
private readonly PropertyMetadata $metadata,
public... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Pages/Properties/PropertyType.php | src/Pages/Properties/PropertyType.php | <?php
namespace Notion\Pages\Properties;
enum PropertyType: string
{
case Checkbox = "checkbox";
case CreatedBy = "created_by";
case CreatedTime = "created_time";
case Date = "date";
case Email = "email";
case Files = "files";
case Formula = "formula";
case LastEditedBy = "last_edited_... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Pages/Properties/Title.php | src/Pages/Properties/Title.php | <?php
namespace Notion\Pages\Properties;
use Notion\Common\RichText;
use function PHPUnit\Framework\isEmpty;
/**
* @psalm-import-type RichTextJson from \Notion\Common\RichText
*
* @psalm-type TitleJson = array{
* id: "title",
* type: "title",
* title: list<RichTextJson>,
* }
*
* @psalm-immut... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Pages/Properties/Relation.php | src/Pages/Properties/Relation.php | <?php
namespace Notion\Pages\Properties;
/**
* @psalm-type RelationJson = array{
* id: string,
* type: "relation",
* relation: array{ id: non-empty-string }[],
* }
*
* @psalm-immutable
*/
class Relation implements PropertyInterface
{
/** @param string[] $pageIds */
private function __co... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Pages/Properties/RichTextProperty.php | src/Pages/Properties/RichTextProperty.php | <?php
namespace Notion\Pages\Properties;
use Notion\Common\RichText;
/**
* @psalm-import-type RichTextJson from \Notion\Common\RichText
*
* @psalm-type RichTextPropertyMetadataJson = array{
* id: string,
* type: "rich_text",
* rich_text: list<RichTextJson>,
* }
*
* @psalm-immutable
*/
class ... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Pages/Properties/LastEditedBy.php | src/Pages/Properties/LastEditedBy.php | <?php
namespace Notion\Pages\Properties;
use Notion\Users\User;
/**
* @psalm-import-type UserJson from \Notion\Users\User
*
* @psalm-type LastEditedByJson = array{
* id: string,
* type: "last_edited_by",
* "last_edited_by": UserJson,
* }
*
* @psalm-immutable
*/
class LastEditedBy implements ... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Pages/Properties/PropertyFactory.php | src/Pages/Properties/PropertyFactory.php | <?php
namespace Notion\Pages\Properties;
class PropertyFactory
{
/**
* @param array{ type: string, ... } $array
*/
public static function fromArray(array $array): PropertyInterface
{
$type = $array["type"];
return match ($type) {
PropertyType::Checkbox->value =... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Pages/Properties/FormulaType.php | src/Pages/Properties/FormulaType.php | <?php
namespace Notion\Pages\Properties;
enum FormulaType: string
{
case String = "string";
case Number = "number";
case Boolean = "boolean";
case Date = "date";
}
| php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Pages/Properties/Status.php | src/Pages/Properties/Status.php | <?php
namespace Notion\Pages\Properties;
use Notion\Common\Color;
use Notion\Databases\Properties\StatusOption;
/**
* @psalm-type StatusJson = array{
* id: string,
* type: "status",
* status: array{ id: string, name: string, color: string }
* }
*
* @psalm-immutable
*/
class Status implements P... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Pages/Properties/Select.php | src/Pages/Properties/Select.php | <?php
namespace Notion\Pages\Properties;
use Notion\Databases\Properties\SelectOption;
/**
* @psalm-type SelectJson = array{
* id: string,
* type: "select",
* select: array{ id: string, name: string, color: string }|null
* }
*
* @psalm-immutable
*/
class Select implements PropertyInterface
{
... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Pages/Properties/Files.php | src/Pages/Properties/Files.php | <?php
namespace Notion\Pages\Properties;
use Notion\Common\File;
/**
* @psalm-import-type FileJson from \Notion\Common\File
*
* @psalm-type FilesJson = array{
* id: string,
* type: "files",
* files: FileJson[],
* }
*
* @psalm-immutable
*/
class Files implements PropertyInterface
{
/** @p... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Database.php | src/Databases/Database.php | <?php
namespace Notion\Databases;
use DateTimeImmutable;
use Notion\Common\Date;
use Notion\Common\Emoji;
use Notion\Common\File;
use Notion\Common\Icon;
use Notion\Common\RichText;
use Notion\Databases\Properties\PropertyCollection;
use Notion\Databases\Properties\PropertyFactory;
use Notion\Databases\Properties\Pro... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Client.php | src/Databases/Client.php | <?php
namespace Notion\Databases;
use Notion\Configuration;
use Notion\Databases\Query\Result;
use Notion\Databases\Query\Sort;
use Notion\Infrastructure\Http;
use Notion\Pages\Page;
/**
* @psalm-import-type DatabaseJson from Database
* @psalm-import-type QueryResultJson from Result
*/
class Client
{
/**
... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/DatabaseParentType.php | src/Databases/DatabaseParentType.php | <?php
namespace Notion\Databases;
enum DatabaseParentType: string
{
case Page = "page_id";
case Workspace = "workspace";
case Block = "block_id";
}
| php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Query.php | src/Databases/Query.php | <?php
namespace Notion\Databases;
use Exception;
use Notion\Databases\Query\Filter;
use Notion\Databases\Query\Sort;
/** @psalm-immutable */
class Query
{
public const MAX_PAGE_SIZE = 100;
/** @param Sort[] $sorts */
private function __construct(
public readonly Filter|null $filter,
publ... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/DatabaseParent.php | src/Databases/DatabaseParent.php | <?php
namespace Notion\Databases;
/**
* @psalm-type DatabaseParentJson = array{
* type: "page_id"|"workspace"|"block_id",
* page_id?: string,
* workspace?: true,
* block_id?: string,
* }
*
* @psalm-immutable
*/
class DatabaseParent
{
private function __construct(
public readon... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Properties/Number.php | src/Databases/Properties/Number.php | <?php
namespace Notion\Databases\Properties;
/**
* @psalm-type NumberJson = array{
* id: string,
* name: string,
* type: "number",
* number: array{ format: string },
* description?: string,
* }
*
* @psalm-immutable
*/
class Number implements PropertyInterface
{
private function ... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Properties/CreatedTime.php | src/Databases/Properties/CreatedTime.php | <?php
namespace Notion\Databases\Properties;
/**
* @psalm-type CreatedTimeJson = array{
* id: string,
* name: string,
* type: "created_time",
* created_time: array<empty, empty>,
* description?: string,
* }
*
* @psalm-immutable
*/
class CreatedTime implements PropertyInterface
{
... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Properties/Unknown.php | src/Databases/Properties/Unknown.php | <?php
namespace Notion\Databases\Properties;
/**
* @psalm-type PropertyJson = array{
* id: string,
* name: string,
* type: string,
* description?: string,
* }
*
* @psalm-immutable
*/
class Unknown implements PropertyInterface
{
private function __construct(
private readonly Pr... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Properties/PropertyInterface.php | src/Databases/Properties/PropertyInterface.php | <?php
namespace Notion\Databases\Properties;
/** @psalm-immutable */
interface PropertyInterface
{
/** @internal */
public static function fromArray(array $array): self;
/** @internal */
public function toArray(): array;
public function metadata(): PropertyMetadata;
}
| php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Properties/UniqueId.php | src/Databases/Properties/UniqueId.php | <?php
namespace Notion\Databases\Properties;
/**
* @psalm-type UniqueIdJson = array{
* id: string,
* name: string,
* type: "uniqueId",
* unique_id: \stdClass,
* description?: string,
* }
*
* @psalm-immutable
*/
class UniqueId implements PropertyInterface
{
private function __con... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Properties/Checkbox.php | src/Databases/Properties/Checkbox.php | <?php
namespace Notion\Databases\Properties;
/**
* @psalm-type CheckboxJson = array{
* id: string,
* name: string,
* type: "checkbox",
* checkbox: array<empty, empty>,
* description?: string,
* }
*
* @psalm-immutable
*/
class Checkbox implements PropertyInterface
{
private funct... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Properties/SelectOption.php | src/Databases/Properties/SelectOption.php | <?php
namespace Notion\Databases\Properties;
use Notion\Common\Color;
/**
* @psalm-type SelectOptionJson = array{
* id?: string,
* name?: string,
* color?: string,
* description?: string,
* }
*
* @psalm-immutable
*/
class SelectOption
{
private function __construct(
public re... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Properties/PropertyMetadata.php | src/Databases/Properties/PropertyMetadata.php | <?php
namespace Notion\Databases\Properties;
/**
* @psalm-type PropertyMetadataJson = array{ id: string, name: string, type: string, description?: string, ... }
*
* @psalm-immutable
*/
class PropertyMetadata
{
private function __construct(
public readonly string $id,
public readonly string $na... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Properties/CreatedBy.php | src/Databases/Properties/CreatedBy.php | <?php
namespace Notion\Databases\Properties;
/**
* @psalm-type CreatedByJson = array{
* id: string,
* name: string,
* type: "created_by",
* created_by: array<empty, empty>,
* description?: string,
* }
*
* @psalm-immutable
*/
class CreatedBy implements PropertyInterface
{
private... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Properties/Date.php | src/Databases/Properties/Date.php | <?php
namespace Notion\Databases\Properties;
/**
* @psalm-type DateJson = array{
* id: string,
* name: string,
* type: "date",
* date: array<empty, empty>,
* description?: string,
* }
*
* @psalm-immutable
*/
class Date implements PropertyInterface
{
private function __construct(... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Properties/LastEditedTime.php | src/Databases/Properties/LastEditedTime.php | <?php
namespace Notion\Databases\Properties;
/**
* @psalm-type LastEditedTimeJson = array{
* id: string,
* name: string,
* type: "last_edited_time",
* last_edited_time: array<empty, empty>,
* description?: string,
* }
*
* @psalm-immutable
*/
class LastEditedTime implements PropertyI... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Properties/StatusOption.php | src/Databases/Properties/StatusOption.php | <?php
namespace Notion\Databases\Properties;
use Notion\Common\Color;
/**
* @psalm-type StatusOptionJson = array{
* id?: string,
* name?: string,
* color?: string,
* description?: string,
* }
*
* @psalm-immutable
*/
class StatusOption
{
private function __construct(
public re... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Properties/PhoneNumber.php | src/Databases/Properties/PhoneNumber.php | <?php
namespace Notion\Databases\Properties;
/**
* @psalm-type PhoneNumberJson = array{
* id: string,
* name: string,
* type: "phone_number",
* phone_number: array<empty, empty>,
* description?: string,
* }
*
* @psalm-immutable
*/
class PhoneNumber implements PropertyInterface
{
... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Properties/People.php | src/Databases/Properties/People.php | <?php
namespace Notion\Databases\Properties;
/**
* @psalm-type PeopleJson = array{
* id: string,
* name: string,
* type: "people",
* people: array<empty, empty>,
* description?: string,
* }
*
* @psalm-immutable
*/
class People implements PropertyInterface
{
private function __co... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Properties/Formula.php | src/Databases/Properties/Formula.php | <?php
namespace Notion\Databases\Properties;
/**
* @psalm-type FormulaJson = array{
* id: string,
* name: string,
* type: "formula",
* formula: array{ expression: string },
* description?: string,
* }
*
* @psalm-immutable
*/
class Formula implements PropertyInterface
{
private f... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Properties/Email.php | src/Databases/Properties/Email.php | <?php
namespace Notion\Databases\Properties;
/**
* @psalm-type EmailJson = array{
* id: string,
* name: string,
* type: "email",
* email: array<empty, empty>,
* description?: string,
* }
*
* @psalm-immutable
*/
class Email implements PropertyInterface
{
private function __constr... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Properties/MultiSelect.php | src/Databases/Properties/MultiSelect.php | <?php
namespace Notion\Databases\Properties;
/**
* @psalm-import-type SelectOptionJson from SelectOption
*
* @psalm-type MultiSelectJson = array{
* id: string,
* name: string,
* type: "multi_select",
* multi_select: array{
* options: list<SelectOptionJson>
* },
* descr... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Properties/PropertyCollection.php | src/Databases/Properties/PropertyCollection.php | <?php
namespace Notion\Databases\Properties;
/** @psalm-immutable */
final class PropertyCollection
{
/** @param array<string, PropertyInterface> $properties */
private function __construct(
private readonly array $properties
) {
}
/**
* @psalm-mutation-free
*/
public static... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Properties/Url.php | src/Databases/Properties/Url.php | <?php
namespace Notion\Databases\Properties;
/**
* @psalm-type UrlJson = array{
* id: string,
* name: string,
* type: "url",
* url: array<empty, empty>,
* description?: string,
* }
*
* @psalm-immutable
*/
class Url implements PropertyInterface
{
private function __construct(
... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Properties/PropertyType.php | src/Databases/Properties/PropertyType.php | <?php
namespace Notion\Databases\Properties;
enum PropertyType: string
{
case Checkbox = "checkbox";
case CreatedBy = "created_by";
case CreatedTime = "created_time";
case Date = "date";
case Email = "email";
case Files = "files";
case Formula = "formula";
case LastEditedBy = "last_edi... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Properties/StatusGroup.php | src/Databases/Properties/StatusGroup.php | <?php
namespace Notion\Databases\Properties;
use Notion\Common\Color;
/**
* @psalm-type StatusGroupJson = array{
* id?: string,
* name?: string,
* color: string,
* option_ids: string[],
* description?: string,
* }
*
* @psalm-immutable
*/
class StatusGroup
{
/** @param string[] ... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Properties/Title.php | src/Databases/Properties/Title.php | <?php
namespace Notion\Databases\Properties;
/**
* @psalm-type TitleJson = array{
* id: "title",
* name: string,
* type: "title",
* title: array<empty, empty>,
* description?: string,
* }
*
* @psalm-immutable
*/
class Title implements PropertyInterface
{
private function __const... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Properties/Relation.php | src/Databases/Properties/Relation.php | <?php
namespace Notion\Databases\Properties;
use Notion\Exceptions\RelationException;
/**
* @psalm-type RelationJson = array{
* id: string,
* name: string,
* type: "relation",
* relation: array{
* database_id: string,
* type: string,
* single_property?: array<em... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Properties/RichTextProperty.php | src/Databases/Properties/RichTextProperty.php | <?php
namespace Notion\Databases\Properties;
/**
* @psalm-type RichTextJson = array{
* id: string,
* name: string,
* type: "rich_text",
* rich_text: array<empty, empty>,
* description?: string,
* }
*
* @psalm-immutable
*/
class RichTextProperty implements PropertyInterface
{
pri... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Properties/LastEditedBy.php | src/Databases/Properties/LastEditedBy.php | <?php
namespace Notion\Databases\Properties;
/**
* @psalm-type LastEditedByJson = array{
* id: string,
* name: string,
* type: "last_edited_by",
* last_edited_by: array<empty, empty>,
* description?: string,
* }
*
* @psalm-immutable
*/
class LastEditedBy implements PropertyInterface... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Properties/PropertyFactory.php | src/Databases/Properties/PropertyFactory.php | <?php
namespace Notion\Databases\Properties;
class PropertyFactory
{
/**
* @param array{ type: string, ... } $array
*/
public static function fromArray(array $array): PropertyInterface
{
$type = PropertyType::tryFrom($array["type"]);
return match ($type) {
PropertyTy... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Properties/Status.php | src/Databases/Properties/Status.php | <?php
namespace Notion\Databases\Properties;
/**
* @psalm-import-type StatusGroupJson from StatusGroup
* @psalm-import-type StatusOptionJson from StatusOption
*
* @psalm-type StatusJson = array{
* id: string,
* name: string,
* type: "status",
* status: array{
* options: StatusOpt... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Properties/RelationType.php | src/Databases/Properties/RelationType.php | <?php
namespace Notion\Databases\Properties;
enum RelationType: string
{
case SingleProperty = "single_property";
case DualProperty = "dual_property";
}
| php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Properties/NumberFormat.php | src/Databases/Properties/NumberFormat.php | <?php
namespace Notion\Databases\Properties;
enum NumberFormat: string
{
case Number = "number";
case NumberChangeCommas = "number_change_commas";
case NumberWithCommas = "number_with_commas";
case Percent = "percent";
case Dollar = "dollar";
case CanadianDollar = "canadian_dollar";
case E... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Properties/Select.php | src/Databases/Properties/Select.php | <?php
namespace Notion\Databases\Properties;
/**
* @psalm-import-type SelectOptionJson from SelectOption
*
* @psalm-type SelectJson = array{
* id: string,
* name: string,
* type: "select",
* select: array{
* options: list<SelectOptionJson>
* },
* description?: string,
... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Properties/Files.php | src/Databases/Properties/Files.php | <?php
namespace Notion\Databases\Properties;
/**
* @psalm-type FilesJson = array{
* id: string,
* name: string,
* type: "files",
* file: array<empty, empty>,
* description?: string,
* }
*
* @psalm-immutable
*/
class Files implements PropertyInterface
{
private function __constru... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Query/TextFilter.php | src/Databases/Query/TextFilter.php | <?php
namespace Notion\Databases\Query;
/** @psalm-immutable */
class TextFilter implements Filter, Condition
{
private static array $validOperators = [
Operator::Equals,
Operator::DoesNotEqual,
Operator::Contains,
Operator::DoesNotContain,
Operator::StartsWith,
Ope... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Query/Result.php | src/Databases/Query/Result.php | <?php
namespace Notion\Databases\Query;
use Notion\Pages\Page;
/**
* Database query result
*
* @psalm-type QueryResultJson = array{
* results: PageJson[],
* has_more: bool,
* next_cursor: string|null
* }
*
* @psalm-import-type PageJson from \Notion\Pages\Page
* @psalm-immutable
*/
class Res... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Query/StatusFilter.php | src/Databases/Query/StatusFilter.php | <?php
namespace Notion\Databases\Query;
/** @psalm-immutable */
class StatusFilter implements Filter, Condition
{
private static array $validOperators = [
Operator::Equals,
Operator::DoesNotEqual,
Operator::IsEmpty,
Operator::IsNotEmpty,
];
private function __construct(
... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Query/CheckboxFilter.php | src/Databases/Query/CheckboxFilter.php | <?php
namespace Notion\Databases\Query;
/** @psalm-immutable */
class CheckboxFilter implements Filter, Condition
{
private static array $validOperators = [
Operator::Equals,
Operator::DoesNotEqual,
];
private function __construct(
private readonly string $propertyName,
pr... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Query/SelectFilter.php | src/Databases/Query/SelectFilter.php | <?php
namespace Notion\Databases\Query;
/** @psalm-immutable */
class SelectFilter implements Filter, Condition
{
private static array $validOperators = [
Operator::Equals,
Operator::DoesNotEqual,
Operator::IsEmpty,
Operator::IsNotEmpty,
];
private function __construct(
... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Query/PeopleFilter.php | src/Databases/Query/PeopleFilter.php | <?php
namespace Notion\Databases\Query;
/** @psalm-immutable */
class PeopleFilter implements Filter, Condition
{
private static array $validOperators = [
Operator::Contains,
Operator::DoesNotContain,
Operator::IsEmpty,
Operator::IsNotEmpty,
];
private function __construct... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Query/Sort.php | src/Databases/Query/Sort.php | <?php
namespace Notion\Databases\Query;
/**
* @psalm-immutable
*/
class Sort
{
private const TYPE_PROPERTY = "property";
private const TYPE_TIMESTAMP = "timestamp";
private const ORDER_ASCENDING = "ascending";
private const ORDER_DESCENDING = "descending";
/**
* @psalm-param self::TYPE_* ... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Query/NumberFilter.php | src/Databases/Query/NumberFilter.php | <?php
namespace Notion\Databases\Query;
/** @psalm-immutable */
class NumberFilter implements Filter, Condition
{
private static array $validOperators = [
Operator::Equals,
Operator::DoesNotEqual,
Operator::GreaterThan,
Operator::LessThan,
Operator::GreaterThanOrEqualTo,
... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
mariosimao/notion-sdk-php | https://github.com/mariosimao/notion-sdk-php/blob/8edcaf170cba9aeb823348e5a42c267e8069a7f4/src/Databases/Query/DateFilter.php | src/Databases/Query/DateFilter.php | <?php
namespace Notion\Databases\Query;
use stdClass;
/** @psalm-immutable */
class DateFilter implements Filter, Condition
{
private const TYPE_PROPERTY = "property";
private const TYPE_TIMESTAMP = "timestamp";
private static array $validOperators = [
Operator::Equals,
Operator::Before,... | php | MIT | 8edcaf170cba9aeb823348e5a42c267e8069a7f4 | 2026-01-05T03:57:23.049347Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.