PHPackages                             php-monsters/laravel-postal-driver - 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. php-monsters/laravel-postal-driver

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

php-monsters/laravel-postal-driver
==================================

Laravel mail transport driver for Postal API

1.0.1(6mo ago)28PHPPHP ^8.0

Since Jul 5Pushed 6mo agoCompare

[ Source](https://github.com/php-monsters/laravel-postal-driver)[ Packagist](https://packagist.org/packages/php-monsters/laravel-postal-driver)[ RSS](/packages/php-monsters-laravel-postal-driver/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

Laravel Postal Mail Driver
==========================

[](#laravel-postal-mail-driver)

A custom Laravel mail transport driver to send emails via the [Postal](https://postal.atech.media) mail server using its **HTTP API** instead of SMTP. Official documentation:
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#a-custom-laravel-mail-transport-driver-to-send-emails-via-the-postal-mail-server-using-its-http-api-instead-of-smtpofficial-documentation-httpsapiv1postalserveriocontrollerssendmessagehtml)

📦 Features
----------

[](#-features)

- Send transactional emails via Postal HTTP API
- Uses Laravel's native `Mail::to()->send()` interface
- Clean, framework-native mail transport driver
- Compatible with Laravel version 8.0+

---

🚀 Installation
--------------

[](#-installation)

### Step 1: Require the package (from local path or Git)

[](#step-1-require-the-package-from-local-path-or-git)

If using local development:

```
composer require php-monsters/laravel-postal-driver
```

Or add to your composer.json:

```
"repositories": [
  {
    "type": "path",
    "url": "./packages/PhpMonsters/LaravelPostalDriver"
  }
],
"require": {
  "php-monsters/laravel-postal-driver": "*"
}
```

Then run:

```
composer update
```

⚙️ Configuration
----------------

[](#️-configuration)

### Step 2: Set up .env variables

[](#step-2-set-up-env-variables)

```
MAIL_DRIVER=postal
POSTAL_API_KEY=your_postal_api_key_here
POSTAL_API_ENDPOINT=https://postal.yourdomain.com
```

### Step 3: Configure config/mail.php

[](#step-3-configure-configmailphp)

Add to the mailers array:

```
'mailers' => [
    'postal' => [
        'transport' => 'postal',
        'key' => env('POSTAL_API_KEY'),
        'endpoint' => env('POSTAL_API_ENDPOINT'),
    ],
],
```

✉️ Usage
--------

[](#️-usage)

Use Laravel's standard Mail facade:

```
use App\Mail\TestMail;
use Illuminate\Support\Facades\Mail;

Mail::to('recipient@example.com')->send(new TestMail());
```

Your Mailable class should work as usual.

📐 Under the Hood
----------------

[](#-under-the-hood)

This driver makes HTTP POST requests to:

```
POST /api/v1/send/message
```

With headers:

```
X-Server-API-Key: {your_api_key}
Content-Type: application/json
```

Payload:

```
{
  "to": "recipient@example.com",
  "from": "you@yourdomain.com",
  "subject": "Subject Line",
  "plain_body": "Text version",
  "html_body": "HTML version"
}
```

🛠 Requirements
--------------

[](#-requirements)

- Laravel 8 or newer
- Postal mail server with API access
- PHP 8.0+
- Guzzle 7+

📝 License
---------

[](#-license)

This project is open-sourced under the MIT license.

🤝 Credits
---------

[](#-credits)

Made with ❤️ by Aboozar Ghaffari

Postal by [Atech Media](https://postal.atech.media)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance68

Regular maintenance activity

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 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 ~121 days

Total

2

Last Release

188d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c7151eabb06297cbe028765b1265b14202a90324f4ff4f53a22cfbaa956e901c?d=identicon)[samurai](/maintainers/samurai)

---

Top Contributors

[![samuraee](https://avatars.githubusercontent.com/u/502961?v=4)](https://github.com/samuraee "samuraee (9 commits)")

---

Tags

composer-packagedriverlaravellaravel-packagelaravel-postalmailmail-drivermailerpostal

### Embed Badge

![Health badge](/badges/php-monsters-laravel-postal-driver/health.svg)

```
[![Health](https://phpackages.com/badges/php-monsters-laravel-postal-driver/health.svg)](https://phpackages.com/packages/php-monsters-laravel-postal-driver)
```

###  Alternatives

[laravel-notification-channels/telegram

Telegram Notifications Channel for Laravel

1.1k3.4M35](/packages/laravel-notification-channels-telegram)[s-ichikawa/laravel-sendgrid-driver

This library adds a 'sendgrid' mail driver to Laravel.

4139.3M1](/packages/s-ichikawa-laravel-sendgrid-driver)[laravel-notification-channels/microsoft-teams

A Laravel Notification Channel for Microsoft Teams

1603.0M7](/packages/laravel-notification-channels-microsoft-teams)[laravel-notification-channels/discord

Laravel notification driver for Discord.

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

Push notification SDK(AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

682104.9k7](/packages/guanguans-notify)[tzsk/sms

A robust and unified SMS gateway integration package for Laravel, supporting multiple providers.

320244.3k6](/packages/tzsk-sms)

PHPackages © 2026

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