PHPackages                             atellitech/postal - 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. atellitech/postal

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

atellitech/postal
=================

Postal for PHP library.

1.0.1(3y ago)0444↓100%[1 issues](https://github.com/AtelliTech/postal-php/issues)1MITPHPPHP &gt;=8.0

Since Jan 27Pushed 3y ago1 watchersCompare

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

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

Postal for PHP
==============

[](#postal-for-php)

This library is forked by postalserver/postal-php, it helps you send e-mails through [Postal](https://github.com/atech/postal) in PHP 8.0 and above.

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

[](#installation)

Install the library using [Composer](https://getcomposer.org/):

```
$ composer require atellitech/postal

```

Usage
-----

[](#usage)

Sending an email is very simple. Just follow the example below. Before you can begin, you'll need to login to our web interface and generate a new API credential.

```
// Create a new message
$message = new AtelliTech\Postal\SendMessage;

// Add some recipients
$message->to('john@example.com');
$message->to('mary@example.com');
$message->cc('mike@example.com');
$message->bcc('secret@awesomeapp.com');

// Specify who the message should be from. This must be from a verified domain
// on your mail server.
$message->from('test@test.postal.io');

// Set the subject
$message->subject('Hi there!');

// Set the content for the e-mail
$message->plainBody('Hello world!');
$message->htmlBody('Hello world!');

// Add any custom headers
$message->header('X-PHP-Test', 'value');

// Attach any files
$message->attach('textmessage.txt', 'text/plain', 'Hello world!');

// Create a new Postal client using the server key you generate in the web interface
$client = new AtelliTech\Postal\Client('https://postal.yourdomain.com', 'your-api-key');

// Send the message and get the result
$result = $message->send($client);

// Loop through each of the recipients to get the message ID
foreach ($result->recipients() as $email => $message) {
    $email;            // The e-mail address of the recipient
    $message->id();    // Returns the message ID
    $message->token(); // Returns the message's token
}
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

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

Total

2

Last Release

1197d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/602dbe208e45032cfb33ad6511992f90d010abaa6fe01ee9d69b0e73f62bc27f?d=identicon)[atellitech](/maintainers/atellitech)

---

Top Contributors

[![iamgold](https://avatars.githubusercontent.com/u/19813333?v=4)](https://github.com/iamgold "iamgold (2 commits)")

---

Tags

postalmail

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/atellitech-postal/health.svg)

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

###  Alternatives

[zbateson/mail-mime-parser

MIME email message parser

53949.2M79](/packages/zbateson-mail-mime-parser)[webklex/php-imap

PHP IMAP client

4365.5M14](/packages/webklex-php-imap)[postal/postal

Postal for PHP library.

81305.4k14](/packages/postal-postal)[zbateson/stream-decorators

PHP psr7 stream decorators for mime message part streams

4748.6M6](/packages/zbateson-stream-decorators)[opcodesio/mail-parser

Parse emails without the mailparse extension

216.8M8](/packages/opcodesio-mail-parser)[scullwm/mailhookbundle

A bundle to catch API webhook from differents mail service

4020.5k](/packages/scullwm-mailhookbundle)

PHPackages © 2026

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