https://github.com/64robots/laravel-notion
Laravel package to use the notion API
https://github.com/64robots/laravel-notion
Last synced: 12 months ago
JSON representation
Laravel package to use the notion API
- Host: GitHub
- URL: https://github.com/64robots/laravel-notion
- Owner: 64robots
- License: mit
- Created: 2021-05-14T10:58:03.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-05-26T09:06:29.000Z (about 5 years ago)
- Last Synced: 2024-05-20T23:05:44.832Z (about 2 years ago)
- Language: PHP
- Size: 20.5 KB
- Stars: 11
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE.md
- Security: .github/SECURITY.md
Awesome Lists containing this project
README
# Package to work with Notion API from Laravel
[](https://packagist.org/packages/64robots/laravel-notion)
[](https://github.com/64robots/laravel-notion/actions?query=workflow%3Arun-tests+branch%3Amain)
[](https://github.com/64robots/laravel-notion/actions?query=workflow%3A"Check+%26+fix+styling"+branch%3Amain)
[](https://packagist.org/packages/64robots/laravel-notion)
This package helps you to use the notion API from Laravel.
## Installation
You can install the package via composer:
```bash
composer require 64robots/laravel-notion
```
Add to your environment file (usually `.env`) the key:
```dotenv
NOTION_ACCESS_TOKEN=YourAccessTokenToNotion
```
## Customization
You can publish the config file with:
```bash
php artisan vendor:publish --provider="R64\LaravelNotion\NotionServiceProvider" --tag="laravel-notion-config"
```
This is the contents of the published config file:
```php
return [
'access_token' => env('NOTION_ACCESS_TOKEN'),
];
```
## Usage
```php
use R64\LaravelNotion\Facades\Notion;
$database = Notion::databases()->retrieve('a65b5216-46cb-479b-961e-67cc7b05a56d');
```
## Testing
```bash
composer test
```
## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.
## Security Vulnerabilities
Please review [our security policy](../../security/policy) on how to report security vulnerabilities.
## Credits
- [64 Robots](https://github.com/64robots)
- [All Contributors](../../contributors)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.