PHPackages                             linyows/notionslot - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. linyows/notionslot

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

linyows/notionslot
==================

Notionslot stores messages in database on Notion for email notifications.

v0.3.0(3y ago)24MITPHP

Since Jul 31Pushed 3y ago1 watchersCompare

[ Source](https://github.com/linyows/notionslot)[ Packagist](https://packagist.org/packages/linyows/notionslot)[ RSS](/packages/linyows-notionslot/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

Notionslot
==========

[](#notionslot)

[![GitHub Workflow Status](https://camo.githubusercontent.com/4a183ae5594c4a6a0721799fc200c603ebe92f2e2d690fbe79d484563655a281/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6c696e796f77732f6e6f74696f6e736c6f742f6275696c642e796d6c3f6272616e63683d6d61696e267374796c653d666f722d7468652d6261646765)](https://github.com/linyows/mailslot/actions/workflows/build.yml)

Notionslot stores messages in database on Notion for email notifications. It is supposed to be used in the contact form of web hosting.

Usage
-----

[](#usage)

API mode:

```
use \Notionslot\Slot;

$config = [
  'notion_token' => 'secret_**********************************',
  'notion_db_id' => '123456aa-bc12-1234-5678-0987654321aa',
  'site_domain' => 'foo.example',
  'site_name' => 'My Foo',
  'notify_to' => 'me@foo.example',
  'reply_to' => 'hello@foo.example',
  'mail_from' => 'noreply@foo.example',
];
$data = array_merge($_POST, ['ip' => $_SERVER['REMOTE_ADDR']]);

echo Slot::api($config, $_SERVER, $data);
```

Library mode:

```
use \Notionslot\Slot;

$config = [
  'notion_token' => 'secret_**********************************',
  'notion_db_id' => '123456aa-bc12-1234-5678-0987654321aa',
  'site_domain' => 'foo.example',
  'site_name' => 'My Foo',
  'notify_to' => 'me@foo.example',
  'reply_to' => 'hello@foo.example',
  'mail_from' => 'noreply@foo.example',
];
$data = array_merge($_POST, ['ip' => $_SERVER['REMOTE_ADDR']]);

$res = [
    'ok' => true,
    'errors' => [],
];

$slot = new Slot($config);
if ($slot->sendHeader($_SERVER)->setData($data)->isValid()) {
    $notionRes = $slot->notify()->reply()->save();
} else {
    http_response_code(422);
    $res = [
        'ok' => false,
        'errors' => $slot->errors(),
    ];
}

echo json_encode($res);
```

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

[](#installation)

The recommended way to install Guzzle is through Composer.

```
$ composer require linyows/notionslot
```

Configuration
-------------

[](#configuration)

Please specify notion token, website domain, mail from, reply to, etc by config.

NameDescriptionnotion\_endpointPage API endpoint for Notionnotion\_emojiEmoji used for Notion pagesnotion\_tokenCredential for Notion API needs write permissionnotion\_db\_idDatabase ID on Notionsite\_domainYour website domainnotify\_toEmail address to notifyreply\_toReply-to header for SMTPmail\_fromFrom header for SMTPmail\_to\_keyA key that specifies an email addressparamsSee belowCustom
------

[](#custom)

The default Notion databse property names are `Full name(title)`, `Email address(email)`, `IP(rich_text)`. You can change the property name and type from the settings.

NameDescriptionkeyUse as HTTP Post params keyrequiredWhether a param is requirednotion\_nameUser defined property name on notion databasenotion\_typeProperty type on notion databaseAuthor
------

[](#author)

[@linyows](https://github.com/linyows)

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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 ~3 days

Total

3

Last Release

1372d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/95c924b31cf58256394a326a69b77630daccc9759ae57d30610b33d77cb59713?d=identicon)[linyows](/maintainers/linyows)

---

Top Contributors

[![linyows](https://avatars.githubusercontent.com/u/72049?v=4)](https://github.com/linyows "linyows (28 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/linyows-notionslot/health.svg)

```
[![Health](https://phpackages.com/badges/linyows-notionslot/health.svg)](https://phpackages.com/packages/linyows-notionslot)
```

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M228](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M52](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)

PHPackages © 2026

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