PHPackages                             digs/courier-sdk-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. digs/courier-sdk-php

ActiveLibrary

digs/courier-sdk-php
====================

PHP implementation of Courier's API as an SDK. With additional support for Laravel 5.8+

v0.10(6y ago)01.8M↓11.3%3[1 issues](https://github.com/digsco/courier-php-sdk/issues)MITPHPPHP &gt;=7.2

Since Mar 1Pushed 6y agoCompare

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

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

Courier SDK
===========

[](#courier-sdk)

Courier PHP SDK supporting:

- Send API
- Messages API
- Profiles API
- Preferences API

Official Courier API docs
-------------------------

[](#official-courier-api-docs)

For a full description of request and response payloads and properties, please see the [official Courier API docs](https://docs.trycourier.com/reference).

Requirements
------------

[](#requirements)

- PHP 7.2+
- ext-curl
- ext-json

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

[](#installation)

```
composer require digs/courier-sdk-php
```

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

[](#configuration)

Instantiate the Courier client class with your authorization and (optional) username. Providing just a authorization token will generate a "Bearer" authorization header, while providing a username will generate a "Basic" (base64-encoded) authorization header

```
$client = new Courier("authorization-token", "username");
```

### Options

[](#options)

Many methods allow the passing of optional data to the Courier endoint. This data should be an associative array of key/value pairs. The exact options supported are dependent on the endpoint being called. Please refer to the official Courier documentation for more information.

```
$profile = [
	"firstname" => "Johnny",
	"lastname" => "Appleseed",
	"email" => "johnny.appleseed@mail.com"
];
```

Methods
-------

[](#methods)

For a full description of request and response payloads and properties, please see the [official Courier API docs](https://docs.trycourier.com/reference).

### Send API

[](#send-api)

- `sendNotification(string $event, string $recipient, array $profile = [], array $data = [], array $preferences = [], array $overrides = []): object` [\[?\]](https://docs.trycourier.com/reference#post-send)

### Messages API

[](#messages-api)

- `getMessage(string $message_id): object` [\[?\]](https://docs.trycourier.com/reference#post-statusrequest_id)

### Profiles API

[](#profiles-api)

- `getProfile(string $recipient_id): object` [\[?\]](https://docs.trycourier.com/reference#get-preferencesrecipient_id)
- `upsertProfile(string $recipient_id, array $profile_attributes): object` [\[?\]](https://docs.trycourier.com/reference#post-profilesid)
- `replaceProfile(string $recipient_id, array $profile_attributes): object` [\[?\]](https://docs.trycourier.com/reference#put-profilesid)
- `patchProfile(string $recipient_id, array $patch): object` [\[?\]](https://docs.trycourier.com/reference#patch-profilesid)

### Preferences API

[](#preferences-api)

- `getPreferences(string $recipient_id, string $preferred_channel): object` [\[?\]](https://docs.trycourier.com/reference#get-preferencesrecipient_id)
- `updatePreferences(string $recipient_id, string $preferred_channel): object` [\[?\]](https://docs.trycourier.com/reference#put-preferencesrecipient_id)

Errors
------

[](#errors)

All unsuccessfull (non 2xx) responses will throw a `CourierRequestException`. The full response object is available via the `getResponse()` method.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity41

Moderate usage in the ecosystem

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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

2269d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3d7dfd80bbcd6e97a4001ec11d50887d9e3af754ad960ae0343dae13f6116e2e?d=identicon)[digs](/maintainers/digs)

---

Top Contributors

[![radiantstatic](https://avatars.githubusercontent.com/u/1668054?v=4)](https://github.com/radiantstatic "radiantstatic (2 commits)")[![aydrian](https://avatars.githubusercontent.com/u/981130?v=4)](https://github.com/aydrian "aydrian (1 commits)")[![troygoode](https://avatars.githubusercontent.com/u/72844?v=4)](https://github.com/troygoode "troygoode (1 commits)")

---

Tags

phpsdkcourier

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/digs-courier-sdk-php/health.svg)

```
[![Health](https://phpackages.com/badges/digs-courier-sdk-php/health.svg)](https://phpackages.com/packages/digs-courier-sdk-php)
```

###  Alternatives

[tomorrow-ideas/plaid-sdk-php

PHP implementation of Plaid's API as an SDK.

1201.6M2](/packages/tomorrow-ideas-plaid-sdk-php)[deepseek-php/deepseek-php-client

deepseek PHP client is a robust and community-driven PHP client library for seamless integration with the Deepseek API, offering efficient access to advanced AI and data processing capabilities.

47073.9k5](/packages/deepseek-php-deepseek-php-client)

PHPackages © 2026

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