Package to work with Notion API from Laravel
This package helps you to use the notion API from Laravel.
Installation
You can install the package via composer:
composer require 64robots/laravel-notion
Add to your environment file (usually .env
) the key:
NOTION_ACCESS_TOKEN=YourAccessTokenToNotion
Customization
You can publish the config file with:
php artisan vendor:publish --provider="R64\LaravelNotion\NotionServiceProvider" --tag="laravel-notion-config"
This is the contents of the published config file:
return [
'access_token' => env('NOTION_ACCESS_TOKEN'),
];
Usage
use R64\LaravelNotion\Facades\Notion;
$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.