PHPackages                             ephraimju/stannp-php - 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. ephraimju/stannp-php

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

ephraimju/stannp-php
====================

PHP SDK for the Stannp mail API

0.2.3(4y ago)012MITPHPPHP &gt;=5.3.0

Since Mar 22Pushed 4y ago1 watchersCompare

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

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

Stannp PHP SDK
==============

[](#stannp-php-sdk)

Our APIs provide programmatic access to your Stannp Bulk Mailer account. Things like configuring campaigns, feeding data and triggering mail pieces to be dispatched can all be achieved using simple yet secure HTTP requests. This SDK aims to provide a way to easily integrate our API into your app

More information regarding parameters and API options can be found within the Stannp API documentation [here](https://www.stannp.com/direct-mail-api).

Setup
-----

[](#setup)

best installed via composer

```
composer update ephraimju\stannpphp
```

The autoloader must be required

```
require_once  'YOUR/PROJECT/ROOT/vendor/autoload.php';
```

The API key must either be passed as a parameter at the instantiation of the object or set as a constant within your application. This will not work without a valid API key

#### Example:

[](#example)

```
define("STANNP_API_KEY", "API_KEY_HERE");
or
$user = new User("API_KEY_HERE");
```

You can find your api key at the bottom of your [Stannp settings page](https://dash.stannp.com/settings).

Usage
-----

[](#usage)

As with the API the SDK is broken down into the separate components. The naming scheme for the classes and methods matches with the API docs; A complete list of these classes are:

```
use Stannp\API\Campaigns;
use Stannp\API\Groups;
use Stannp\API\Letters;
use Stannp\API\Postcard;
use Stannp\API\Recipients;
use Stannp\API\Reporting;
use Stannp\API\User;
```

#### Usage examples:

[](#usage-examples)

```
use Stannp\API\Postcard;

$user = new User();
$user->getMe();
```

```
use Stannp\API\Postcard

$postcard = new Postcard();
$postcard->create(
	"A6",
	"https://www.stannp.com/assets/samples/a6-postcard-front.jpg",
	"Hello World",
	"Signature goes here",
	"Mr",
	"John",
	"Smith",
	"123 Fakestreet",
	"Address ln 2",
	"Cityshire",
	"AB12 3CD",
	 true,
	"GB"
);
```

#### Output

[](#output)

All output is in JSON format, to convert to a PHP object use `json_decode()`

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

Top contributor holds 55.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 ~6 days

Total

9

Last Release

1465d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/508c255cd534484fb7bb39a31f38e744a39a6c8b4422fd3b67c8ad44228e28b0?d=identicon)[ephraimju](/maintainers/ephraimju)

---

Top Contributors

[![BrokenReference](https://avatars.githubusercontent.com/u/18033656?v=4)](https://github.com/BrokenReference "BrokenReference (15 commits)")[![ephraimju](https://avatars.githubusercontent.com/u/6796676?v=4)](https://github.com/ephraimju "ephraimju (9 commits)")[![infostreams](https://avatars.githubusercontent.com/u/1132744?v=4)](https://github.com/infostreams "infostreams (2 commits)")[![paaaaaaaaaa](https://avatars.githubusercontent.com/u/672694?v=4)](https://github.com/paaaaaaaaaa "paaaaaaaaaa (1 commits)")

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/ephraimju-stannp-php/health.svg)

```
[![Health](https://phpackages.com/badges/ephraimju-stannp-php/health.svg)](https://phpackages.com/packages/ephraimju-stannp-php)
```

###  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.3M227](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/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)
