64robots / laravel-notion
Package to work with Notion API from Laravel
0.1
2021-05-14 16:07 UTC
Requires
- php: ^7.4|^8.0
- 64robots/php-notion: ^0.1
- illuminate/contracts: ^8.37
- spatie/laravel-package-tools: ^1.4.3
Requires (Dev)
- brianium/paratest: ^6.2
- nunomaduro/collision: ^5.3
- orchestra/testbench: ^6.15
- phpunit/phpunit: ^9.3
- vimeo/psalm: ^4.4
README
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.