64robots/php-notion
Package to use Notion API from PHP
Maintainers
Requires
- php: ^7.4|^8.0
- guzzlehttp/guzzle: ^7.3
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.17
- phpunit/phpunit: ^9.5
- vimeo/psalm: ^4.3
Suggests
None
Provides
None
Conflicts
None
Replaces
None
MIT 66ed9fda3e8834c11060698310096243468aab5c
- 64 Robots <miguel.woop@64robots.com>
This package is auto-updated.
Last update: 2026-06-13 21:24:34 UTC
README
👁 Latest Version on Packagist
👁 GitHub Tests Action Status
👁 GitHub Code Style Action Status
👁 Total Downloads
This package allows you to use the Notion API from PHP.
Installation
This package requires PHP => 7.4. You can install the package via composer:
composer require 64robots/php-notion
Usage
You need to create an instance of the Notion class using your Notion Internal Integration Token
Now you can invoke the resource method you need (databases in this example)
use R64\PhpNotion\Notion; $notion = new Notion('secret_access_token'); $database = $notion->databases()->retrieve('a65b5216-46cb-479b-961e-67cc7b05a56d');
Resources
Databases
Retrieve a Database
Notion Retrieve Database documentation
$database = $notion->databases()->retrieve('a65b5216-46cb-479b-961e-67cc7b05a56d');
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
