notion-sdk-php

A complete Notion SDK for PHP developers.

MIT License

Downloads
36.7K
Stars
130
Committers
9
notion-sdk-php - Version v1.0.0-beta.2

Published by mariosimao almost 2 years ago

Added

  • Add database description (#125)
  • Add support to toggleable headings (#126)
  • Add caption to Code block (#127)
  • Add support to Status property (#132)

Changed

  • Unify constructor method names (#131)

Documentation

  • Express psr/http-client dependency on documentation (#128)
  • Document blocks (#129)
notion-sdk-php - Version 1.0.0-beta.1

Published by mariosimao about 2 years ago

Added

  • Icon value object instead of File|Emoji

Changed

  • Require PHP 8.1
  • Enums instead of constants for everything. Example: collor, block type, ...
  • Readonly public properties and removal of getters
  • Many method signatures were changed

Full Changelog: https://github.com/mariosimao/notion-sdk-php/compare/v0.6.2...v1.0.0-beta.1

notion-sdk-php - Version 0.6.2

Published by mariosimao about 2 years ago

Fixed

  • Missing Files page property (#105)

Documentation

  • How to add and update page properties (#104)
  • How to get page content (#106)

Full Changelog: https://github.com/mariosimao/notion-sdk-php/compare/v0.6.1...v0.6.2

notion-sdk-php - Version 0.6.1

Published by mariosimao about 2 years ago

Added

  • Add URL support to RichText objects (#89)

Fixed

  • Wrong object to array conversion

Full Changelog: https://github.com/mariosimao/notion-sdk-php/compare/v0.6.0...v0.6.1

notion-sdk-php - Version 0.6.0

Published by mariosimao over 2 years ago

Added

  • Add URL support to RichText objects (#89)

Full Changelog: https://github.com/mariosimao/notion-sdk-php/compare/v0.5.2...v0.6.0

notion-sdk-php - Version 0.5.2

Published by mariosimao over 2 years ago

Fixed

  • Handle empty value for select property (#86)

Full Changelog: https://github.com/mariosimao/notion-sdk-php/compare/v0.5.1...v0.5.2

notion-sdk-php - Version 0.5.1

Published by mariosimao over 2 years ago

Added

  • Support to internal cover image (#80)
notion-sdk-php - Version 0.5.0

Published by mariosimao over 2 years ago

Added

  • Query database (#5 and #75)
notion-sdk-php - Version 0.4.0

Published by mariosimao over 2 years ago

Added

  • How to documentation for pages
  • Find block (#58)
  • Update block (#59)
  • Append blocks (#60)
  • Delete block (#61)

Changed

  • Notion version to 2022-02-22 (#69)
notion-sdk-php - Version 0.3.0

Published by mariosimao almost 3 years ago

Added

  • Find block children
  • Find block children recursively
  • Link preview block
  • Column and column list blocks

Changed

  • Blocks withChildren() methods renamed to changeChildren()
notion-sdk-php - Version 0.2.0

Published by mariosimao almost 3 years ago

Added

  • Breadcrumb block
  • Support discovery of more PSR clients with php-http/discovery

Changed

  • Clients require implementations of RequestFactoryInterface
  • Rename Notion\Client::createWithPsrClient() to createWithPsrImplementations()
  • Rename Notion\Client to Notion\Notion
  • Rename Notion\Databases\Database::withTitle() to withAdvancedTitle()
  • Use list<RichText> instead of ...RichText on
    • Bookmark::withCaption()
    • BulletedListItem::withText()
    • Callout::withText()
    • Code::withText()
    • Heading1::withText()
    • Heading2::withText()
    • Heading3::withText()
    • NumberedListItem::withText()
    • Paragraph::withText()
    • Quote::withText()
    • ToDo::withText()
    • Toggle::withText()
    • Database::withAdvancedTitle()
    • Title::withRichTexts()
    • RichTextProperty::withText()
  • Use list<BlockInterface> instead of ...BlockInterface on
    • BulletedListItem::withChildren()
    • Callout::withChildren()
    • NumberedListItem::withChildren()
    • Paragraph::withChildren()
    • Quote::withChildren()
    • ToDo::withChildren()
    • Toggle::withChildren()
    • Notion\Pages\Client::create()
  • Use list<SelectOption> instead of ...SelectOption on
    • Select::withOptions()
    • MultiSelect::withOptions()
  • Use list<non-empty-string> instead of ...string on
    • MultiSelect::fromIds() and MultiSelect::fromNames()
    • Relation::create() and Relation::withRelations()
  • Use list<User> instead of ...User on
    • People::create() and People::withPeople()
notion-sdk-php - Version 0.1.0

Published by mariosimao almost 3 years ago

First release of notion-sdk-php ! 🎉

Support to pages, databases and users API.

Blocks:

  • bookmark
  • bulleted list item
  • callout
  • child database
  • child page
  • code
  • divider
  • embed
  • equation
  • file
  • heading 1
  • heading 2
  • heading 3
  • image
  • numbered list item
  • paragraph
  • PDF
  • quote
  • table of contents
  • to do
  • toggle
  • video

Database and Page properties:

  • checkbox
  • created by
  • created time
  • date
  • email
  • files
  • formula
  • last edited by
  • last edited time
  • multi select
  • number
  • people
  • phone number
  • rich text
  • select
  • title
  • URL