{"repo":"5am-code/laravel-notion-api","free":true,"listed":false,"github":"https://github.com/5am-code/laravel-notion-api","clone":"git clone https://github.com/5am-code/laravel-notion-api.git","description":"Effortless Notion integrations with Laravel","language":"PHP","stars":435,"topics":["laravel","notion","notion-api","effortless-notion-integrations","api","php","notion-integration","notion-sdk","php-notion"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Notion for Laravel [comment]: < (![GitHub Actions]&#40;https://github.com/fiveam-code/laravel-notion-api/actions/workflows/main.yml/badge.svg&#41;) This package provides a simple and crisp way to access the Notion API endpoints, query data and update existing entries. Documentation For a extensive documentation, more context and usage examples, head over to the official documentation at notionforlaravel.com. Quick Start Guide All examples refer to our test database, which you can find here. Installation The package is compatible with Laravel 8, 9 and 10. The minimum PHP requirement is 8.0. 1. Install the package via composer: 2. Get your Notion API access token like explained in their documentation. It's also important to grant access to the integration within your Notion pages, which is described in the developer documentation at Notion as well. 3. Add a new line to your applications .env file: 4. You're ready to go! You can now access Notion endpoints through the Notion facade: That's it. For detailed usage information and a list of available endpoints see (the docs). Examples Fetch a Notion Database The databases()- find() method returns a FiveamCode\\LaravelNotionApi\\Entities\\Database object, which contains all the information about the database, including its properties and the possible values for each property. Fetch a Notion Page The pages()- find() method returns a FiveamCode\\LaravelNotionApi\\Entities\\Page object, which contains all the information about the page, incl","default_branch":null,"files":null,"tree":[],"storefront":"/r/5am-code","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/5am-code/laravel-notion-api/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}