64robots/laravel-notion

Package to work with Notion API from Laravel

0.1 2021-05-14 16:07 UTC

This package is auto-updated.

Last update: 2024-11-26 16:34:26 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

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.