Download the PHP package zlt/laravel-notion-viewer without Composer
On this page you can find all versions of the php package zlt/laravel-notion-viewer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download zlt/laravel-notion-viewer
More information about zlt/laravel-notion-viewer
Files in zlt/laravel-notion-viewer
Package laravel-notion-viewer
Short Description Get Notion blocks with Laravel
License MIT
Informations about the package laravel-notion-viewer
Laravel Notion Viewer
This is a server side package for getting Notion page and blocks.
In order to render notion blocks in your application, please consider using npm package notion-viewer-client.
Table Of Contents
- Prerequisites
- Installation
- Usage
- TroubleShooting
Prerequisites
Requirements are:
You need to provide API key for getting Notion API.
If you don't know how to get API key, please consult this documentation.
Installation
-
Install package via composer
- Publish config file
The following routes will be auto registered.
Config file will be
Usage
-
Getting Notion Page
-
Getting Blocks
-
Getting Notion Page With Blocks
-
Getting Recursive Blocks
Some blocks have children blocks. In order to get all children blocks, use this method.
-
Getting Page with Recursive Blocks
TroubleShooting
-
object_not_found error
If you get
object_not_found
error, please check if you have given your integration access to your Notion Page. See here.
Support me
If you want to support me, buy me a coffee via Binance.

TODO
- [ ] Add Tests
- [ ] Add more features to cover all Notion API endpoints