PHPackages                             zensend/zensend - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. zensend/zensend

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

zensend/zensend
===============

ZenSend PHP Library

1.0.4(9y ago)257.7k↑225%[3 PRs](https://github.com/zensend/zensend_php_api/pulls)MITPHPPHP &gt;=5.3.3

Since Aug 17Pushed 7y ago5 watchersCompare

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

READMEChangelogDependencies (1)Versions (9)Used By (0)

[![Build Status](https://camo.githubusercontent.com/0231b36ab62650dfae86079a38e793f0df42958efd7c18758f0531f2ca59a9c7/68747470733a2f2f7472617669732d63692e6f72672f7a656e73656e642f7a656e73656e645f7068705f6170692e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/zensend/zensend_php_api)

ZenSend PHP bindings
====================

[](#zensend-php-bindings)

You can sign up for a ZenSend account at .

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

[](#requirements)

PHP 5.3.3 and later.

Composer
--------

[](#composer)

You can install the bindings via [Composer](http://getcomposer.org/). Add this to your `composer.json`:

```
{
  "require": {
    "zensend/zensend": "1.0.4"
  }
}

```

Then install via:

```
composer install

```

To use the bindings, use Composer's [autoload](https://getcomposer.org/doc/00-intro.md#autoloading):

```
require_once('vendor/autoload.php');

```

Manual Installation
-------------------

[](#manual-installation)

If you do not wish to use Composer, you can download the [latest release](https://github.com/zensend/zensend_php_api/releases). Then, to use the bindings, include the `init.php` file.

```
require_once('/path/to/zensend_php_api/init.php');

```

Getting Started
---------------

[](#getting-started)

Simple usage looks like:

```
$client = new ZenSend\Client("api_key");
$request = new ZenSend\SmsRequest();
$request->body = "BODY";
$request->originator = "ORIG";
$request->numbers = ["447700000000"];
$result = $client->send_sms($request);
echo $result->numbers;
echo $result->sms_parts;
echo $result->encoding;
echo $result->tx_guid;

```

Verify Getting Started
----------------------

[](#verify-getting-started)

After authenticating the user display the verify iframe using the following code:

```

```

Create another file called verify\_callback.php to handle verification:

```

```

Documentation
-------------

[](#documentation)

Please see  for up-to-date documentation.

Certificate Errors
------------------

[](#certificate-errors)

If you receive errors like:

```
"SSL certificate problem: unable to get local issuer certificate"

```

This is likely because your php curl is not set up with a certificate bundle. This can be fixed by following the instructions here:

Or alternatively we have included the CA certificates that we require in a bundle which can be used by creating the ZenSend Client like:

$client = ZenSend\\Client::newWithHardcodedCA("api\_key");

String Encoding
---------------

[](#string-encoding)

All strings sent to the API should be UTF-8 encoded.

Tests
-----

[](#tests)

In order to run tests first install [PHPUnit](http://packagist.org/packages/phpunit/phpunit) via [Composer](http://getcomposer.org/):

```
composer update --dev

```

To run the test suite:

```
./vendor/bin/phpunit

```

Manual Testing
--------------

[](#manual-testing)

```
~/.composer/vendor/bin/psysh
>>> require('./init.php')
>>> $client = new ZenSend\Client("api_key", array(), "http://127.0.0.1:8084", "http://verify.fonix.dev");
>>> $response = $client->lookup_operator("441234567890");
>>> $client->create_msisdn_verification("441234567890");
>>> $client->msisdn_verification_status("a33d10fe587096a0b70d3701fc2c9f7e")
>>> $verify = new ZenSend\Verify("api_key", array(), "http://verify.fonix.dev");
>>> $verify->create_session("441234567890")
>>> $verify->write_tags("callback");

```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

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

Total

5

Last Release

3625d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4e56efad0174be4f6360795d6225f9e07ad747bd98e04e386687ea5fb5a10978?d=identicon)[zensend](/maintainers/zensend)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[phamda/phamda

Auto-curried function library

1922.8k](/packages/phamda-phamda)

PHPackages © 2026

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