PHPackages                             messagex/messagex - 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. messagex/messagex

ActiveLibrary

messagex/messagex
=================

A library to make requests to the Messagex API.

03[2 PRs](https://github.com/messagex/php-messagex/pulls)PHP

Since May 25Pushed 3y ago4 watchersCompare

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

READMEChangelogDependenciesVersions (4)Used By (0)

MessageX SDK - PHP
==================

[](#messagex-sdk---php)

THIS SDK IS A WIP AND SHOULD NOT BE DOWNLOADED YET
==================================================

[](#this-sdk-is-a-wip-and-should-not-be-downloaded-yet)

---

[![MessageX Logo](https://raw.githubusercontent.com/messagex/node-messagex/master/img/messagex-logo.png "MessageX")](https://raw.githubusercontent.com/messagex/node-messagex/master/img/messagex-logo.png)

This SDK provides enables PHP applications with an easy to use interface to the MessageX API.

---

- [Installation](#installation)
- [Examples](#examples)
- [Testing](#testing)

---

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

[](#installation)

```
composer require messagex/messagex
```

---

Examples
--------

[](#examples)

### Sending email

[](#sending-email)

Instantiate the library

```
use messagex\messagex;

...

$client = new \PhpApiClient\Client($apiKey, $apiSecret);
```

The following example shows how to send an email.

```
$payload = [
    "contactGroupId" => "70266b1a-3e07-4096-90ec-87c8015872ca",
    "unsubscribeGroupId" => "4501ccf5-0f4b-4d36-b329-a0029b68ea0a",
    "from" => [
        "address" => "no-reply@smsglobal.com",
        "name" => "MessageX"
    ],
    "to" => [
        [
            "address" => "john@example.com",
            "name" => "Test email message"
        ],
    ],
    "subject" => "Transactional Email 1",
    "content" => [
        [
            "type" => "text/html",
            "body" => "This is the body. Go to The Age to see the news. Or go to Google to search for more"
        ],
        [
            "type" => "text/plain",
            "body" => "AAA Plaintext email content."
        ]
    ],
    "replyTo" => [
        "name" => "reply-to-me",
        "address" => "someone@example.com"
    ],
];

$client->mail()->send($payload);

```

Testing
-------

[](#testing)

To run tests, run the script `vendor/bin/phpunit --coverage-text`.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/f3c29f969c5e66ddc0709dd18d1c5d3c6cf1396c1f3471f0251782510558f205?d=identicon)[smsglobal](/maintainers/smsglobal)

---

Top Contributors

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

### Embed Badge

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

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

PHPackages © 2026

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