PHPackages                             tormjens/posteio - 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. tormjens/posteio

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

tormjens/posteio
================

A PHP SDK for the Poste.io API with support for Laravel 5

0.1(8y ago)091[1 PRs](https://github.com/tormjens/posteio-php/pulls)MITPHPPHP &gt;=7.0.0

Since Oct 2Pushed 7y ago1 watchersCompare

[ Source](https://github.com/tormjens/posteio-php)[ Packagist](https://packagist.org/packages/tormjens/posteio)[ RSS](/packages/tormjens-posteio/feed)WikiDiscussions master Synced 2mo ago

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

Poste.io PHP SDK
================

[](#posteio-php-sdk)

Poste.io is a full-featured mail server that features a REST API for tasks like creating mailboxes and adding domains.

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

[](#installation)

1. Install it using Composer

```
composer require tormjens/posteio

```

### Using in Laravel

[](#using-in-laravel)

If you're using Laravel 5.5, you can go ahead and skip to number 3.

1. Add the service provider to the providers array in your `config/app.php`.

```
    'TorMorten\Posteio\Providers\PosteioServiceProvider',
```

2. Add the facade in `config/app.php`

```
    'Posteio' => TorMorten\Posteio\Posteio::class,
```

3. Add the credentials in `config/services.php`

```
    'posteio' => [
        'host' => 'https://myhost.com',
        'username' => 'email@myhost.com',
        'password' => 'secret'
    ],
```

### Outside Laravel

[](#outside-laravel)

Instantiate the class like so:

```
$posteio = new TorMorten\Posteio\Client('https://myhost.com', 'email@myhost.com', 'secret');
```

Usage
-----

[](#usage)

The API is split into two services; boxes and domains. Both have the same CRUD functions. You can find the complete documentation of what each resource takes a its parameters on their [API docs/sandbox](https://poste.io/demo).

### Laravel

[](#laravel)

In Laravel the client is bound to the service container and can be instantiated in two different ways.

The first is via dependency injection.

```
Route::post('create-account', function(TorMorten\Posteio\Client $posteio) {
    $posteio->boxes()->create(['name' => 'John Doe', 'email' => 'john@myhost.com']);
});
```

The second is via resolving it via the service container.

```
app('posteio')->boxes()->create(['name' => 'John Doe', 'email' => 'john@myhost.com']);
// or
app('TorMorten\Posteio\Client')->boxes()->create(['name' => 'John Doe', 'email' => 'john@myhost.com']);
```

TODO
----

[](#todo)

- Create a better readme.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

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

Unknown

Total

1

Last Release

3141d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/16b2089f55ff5ab3154ef21caec78446d23b1515cc074d2d1c2bf184a9e64603?d=identicon)[tormjens](/maintainers/tormjens)

---

Top Contributors

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

---

Tags

laravelmailposte.io

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tormjens-posteio/health.svg)

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

###  Alternatives

[vemcogroup/laravel-sparkpost-driver

SparkPost driver to use with Laravel 6.x|7.x|8.x|9.x|10.x

421.7M1](/packages/vemcogroup-laravel-sparkpost-driver)

PHPackages © 2026

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