This package allows you to use the Notion API from PHP.
This package requires PHP => 7.4. You can install the package via composer:
composer require 64robots/php-notion
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');
Notion Retrieve Database documentation
$database = $notion->databases()->retrieve('a65b5216-46cb-479b-961e-67cc7b05a56d');
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.