PHPackages                             siteworx/mail-client - 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. [API Development](/categories/api)
4. /
5. siteworx/mail-client

AbandonedArchivedLibrary[API Development](/categories/api)

siteworx/mail-client
====================

api client for the siteworx professionals api

v1.4(3y ago)25.3kMITPHPPHP &gt;=7.0.0

Since Sep 20Pushed 3y agoCompare

[ Source](https://github.com/siteworxpro/mail-client)[ Packagist](https://packagist.org/packages/siteworx/mail-client)[ RSS](/packages/siteworx-mail-client/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (3)Versions (12)Used By (0)

Mail client for the siteworx pro email API
------------------------------------------

[](#mail-client-for-the-siteworx-pro-email-api)

Access to the API is restricted and requires an account.

`composer require siteworx/mail-client`

**Requires** PHP &gt;7.0

Usage

```
require 'vendor/autoload.php';

$transport = new Siteworx\Mail\Transports\ApiTransport([
	'client_id' => 'k4ndk...4kkfa',
	'client_secret' => 'Jdv4...4kvD'
]);

$client = new Siteworx\Mail\Client($transport);

$client->setSubject('Test Subject');
$client->setFrom('from@email.com');

$client->addTo('an@email.com');
$client->addTo('another@email.com');

$client->setBody('Test Message!');

$result = $client->send();
```

You can provide a cache to the api transport and your api token will automatically be cached for it's lifetime.

```
$memcache = new Memcache;
$memcache->addServer($host);

$transport = new Siteworx\Mail\Transports\ApiTransport([
	'client_id' => 'k4ndk...4kkfa',
	'client_secret' => 'Jdv4...4kvD'
]);

$transport->setCache($memcache);
```

You can use any cache that implements the PSR-6 CacheInterface.

**Catching Message**

You can catch message if you are testing by passing in the value of `true` to the send method

```
$client->send(true);
```

The payload will be sent to the api and validated but will be caught before it is sent.

**Delaying Messages**

You can delay message so they are sent at a specific time.

```
$time = new DateTime();
$time->add(new DateInterval('P1D'));
$client->sendTime($time);
```

This will send the email the next day.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity65

Established project with proven stability

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

Recently: every ~335 days

Total

11

Last Release

1267d ago

Major Versions

0.5 → 1.02019-03-23

v0.6 → 1.12020-09-09

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/19206279?v=4)[alphafloor](/maintainers/alphafloor)[@alphafloor](https://github.com/alphafloor)

---

Top Contributors

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

---

Tags

php

### Embed Badge

![Health badge](/badges/siteworx-mail-client/health.svg)

```
[![Health](https://phpackages.com/badges/siteworx-mail-client/health.svg)](https://phpackages.com/packages/siteworx-mail-client)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[theodo-group/llphant

LLPhant is a library to help you build Generative AI applications.

1.5k311.5k5](/packages/theodo-group-llphant)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

517.9M7](/packages/avalara-avataxclient)[commercetools/commercetools-sdk

The official PHP SDK for the commercetools Composable Commerce APIs

19281.5k](/packages/commercetools-commercetools-sdk)[alexacrm/dynamics-webapi-toolkit

Web API toolkit for Microsoft Dynamics 365 and Dynamics CRM

81324.1k1](/packages/alexacrm-dynamics-webapi-toolkit)[tamara-solution/php-sdk

Tamara PHP Client Library

10259.4k1](/packages/tamara-solution-php-sdk)

PHPackages © 2026

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