PHPackages                             elsayed85/laravel-notion-api - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. elsayed85/laravel-notion-api

ActiveLibrary[API Development](/categories/api)

elsayed85/laravel-notion-api
============================

Laravel Wrapper for the Notion API

0.3.0(4y ago)04MITPHPPHP ^7.4|^8.0

Since May 14Pushed 4y agoCompare

[ Source](https://github.com/elsayed85/laravel-notion-api)[ Packagist](https://packagist.org/packages/elsayed85/laravel-notion-api)[ Docs](https://github.com/fiveam-code/laravel-notion-api)[ RSS](/packages/elsayed85-laravel-notion-api/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (7)Used By (0)

 Laravel Notion API
===================

[](#-laravel-notion-api)

 Effortless Notion integrations with Laravel
--------------------------------------------

[](#-effortless-notion-integrations-with-laravel)

[![](https://camo.githubusercontent.com/022ef606a817d8e862d4bd3046fb98e044e9ec8303e6ed3d075da4034c0179b5/68747470733a2f2f35616d636f2e64652f696d616765732f35616d2e706e67)](https://camo.githubusercontent.com/022ef606a817d8e862d4bd3046fb98e044e9ec8303e6ed3d075da4034c0179b5/68747470733a2f2f35616d636f2e64652f696d616765732f35616d2e706e67)

[![Latest Version on Packagist](https://camo.githubusercontent.com/019a395e94e38e10859ae13ff92bc7b2412b90b2d6c82612d58c14316bedca9c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f66697665616d2d636f64652f6c61726176656c2d6e6f74696f6e2d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fiveam-code/laravel-notion-api)[![Total Downloads](https://camo.githubusercontent.com/50cd75c3abf576ec8b133199cf8c0ad92d1acb2e8028857993c83b048a039078/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f66697665616d2d636f64652f6c61726176656c2d6e6f74696f6e2d6170692e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/fiveam-code/laravel-notion-api)

This package provides a simple and crisp way to access the Notion API endpoints, query data and update existing entries.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require fiveam-code/laravel-notion-api
```

### Authorization

[](#authorization)

The Notion API requires an access token and a Notion integration, [the Notion documentation](https://developers.notion.com/docs/getting-started#before-we-begin) explains how this works. It's important to grant access to the integration within your Notion account to enable the API access.

Add your Notion API token to your `.env` file:

```
NOTION_API_TOKEN="$YOUR_ACCESS_TOKEN"

```

Usage
-----

[](#usage)

Head over to the [Documentation](https://5amco.de/docs) of this package.

### 🔥 Code Examples to jumpstart your Notion API Project

[](#-code-examples-to-jumpstart-your-notion-api-project)

#### Basic Setup

[](#basic-setup)

```
use FiveamCode\LaravelNotionApi\Notion;
use Illuminate\Support\Collection;
use FiveamCode\LaravelNotionApi\Query\Sorting;
use FiveamCode\LaravelNotionApi\Query\Filter;

// Setup basic API connection
$notion = new Notion();
$notion->v1();
```

#### Fetch Page Information

[](#fetch-page-information)

```
// Returns a specific page
$notion->pages()->find($yourPageId);
```

#### Query Database

[](#query-database)

```
// Queries a specific database and returns a collection of pages (= database entries)
$sortings = new Collection();
$filters = new Collection();

$sortings
  ->add(Sorting::propertySort("Ordered", "ascending"));
$sortings
  ->add(Sorting::timestampSort("created_time", "ascending"));

$filters
  ->add(Filter::textFilter("title", ["contains" => "new"]));
// or
$filters
  ->add(Filter::rawFilter("Tags", ["multi_select" => ["contains" => "great"]]));

$notion
  ->database($yourDatabaseId)
  ->filterBy($filters) // filters are optional
  ->sortBy($sortings) // sorts are optional
  ->limit(5) // limit is optional
  ->query();
```

### Testing

[](#testing)

```
vendor/bin/phpunit tests
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Diana Scharf](https://github.com/mechelon)
- [Johannes Güntner](https://github.com/johguentner)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

Laravel Package Boilerplate
---------------------------

[](#laravel-package-boilerplate)

This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 52.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

1819d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9f6465ef2e90074d5a323bf893bb1ab9a7b5af7bf61d1001f85a8448d8fb257d?d=identicon)[elsayed851999](/maintainers/elsayed851999)

---

Top Contributors

[![johguentner](https://avatars.githubusercontent.com/u/3506359?v=4)](https://github.com/johguentner "johguentner (20 commits)")[![mechelon](https://avatars.githubusercontent.com/u/26432041?v=4)](https://github.com/mechelon "mechelon (17 commits)")[![sschlein](https://avatars.githubusercontent.com/u/2911113?v=4)](https://github.com/sschlein "sschlein (1 commits)")

---

Tags

fiveam-codelaravel-notion-api

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/elsayed85-laravel-notion-api/health.svg)

```
[![Health](https://phpackages.com/badges/elsayed85-laravel-notion-api/health.svg)](https://phpackages.com/packages/elsayed85-laravel-notion-api)
```

###  Alternatives

[fiveam-code/laravel-notion-api

Laravel Wrapper for the Notion API

435224.4k1](/packages/fiveam-code-laravel-notion-api)[mollie/laravel-mollie

Mollie API client wrapper for Laravel &amp; Mollie Connect provider for Laravel Socialite

3624.1M28](/packages/mollie-laravel-mollie)[mll-lab/laravel-graphiql

Easily integrate GraphiQL into your Laravel project

683.2M9](/packages/mll-lab-laravel-graphiql)[esign/laravel-conversions-api

A laravel wrapper package around the Facebook Conversions API

69145.4k](/packages/esign-laravel-conversions-api)[didww/didww-api-3-php-sdk

PHP SDK for DIDWW API 3

1218.2k](/packages/didww-didww-api-3-php-sdk)[surface/laravel-webfinger

A Laravel package to create an ActivityPub webfinger.

113.8k](/packages/surface-laravel-webfinger)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
