PHPackages                             headzoo/nexmo - 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. headzoo/nexmo

ActiveLibrary[API Development](/categories/api)

headzoo/nexmo
=============

Library for communicating with the Nexmo SMS API.

v0.1.3.1(11y ago)08101MITPHPPHP &gt;=5.5

Since Jan 28Pushed 11y ago1 watchersCompare

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

READMEChangelogDependencies (2)Versions (11)Used By (1)

Headzoo Nexmo
=============

[](#headzoo-nexmo)

Library for communicating with the Nexmo SMS API.

[![Build Status](https://camo.githubusercontent.com/faeb28a08fb93d525c55af2af3b8d5401373eb9f9b9a1c7d84176a3219f5e8cf/68747470733a2f2f7472617669732d63692e6f72672f686561647a6f6f2f6e65786d6f2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/headzoo/nexmo)[![Latest Stable Version](https://camo.githubusercontent.com/5cdf9c4ca8e98097543a3d6fbf0d652311317623a97ad90811d2fce94de7525f/68747470733a2f2f706f7365722e707567782e6f72672f686561647a6f6f2f6e65786d6f2f762f737461626c652e737667)](https://packagist.org/packages/headzoo/nexmo)[![MIT License](https://camo.githubusercontent.com/e61bac839073fb179b557f3f91cb7a235f7d774ff2b532f3a2b0e25017a328c2/68747470733a2f2f706f7365722e707567782e6f72672f686561647a6f6f2f6e65786d6f2f6c6963656e73652e737667)](https://packagist.org/packages/headzoo/nexmo)

### Overview

[](#overview)

[Nexmo](https://www.nexmo.com) is an inexpensive provider of voice and text (SMS) services based in the UK. This library is used to communicate with their API for the purpose of sending text messages to mobile devices.

### Installing via Composer

[](#installing-via-composer)

The recommended way to install headzoo/nexmo is through [Composer](http://getcomposer.org).

```
# Install Composer
curl -sS https://getcomposer.org/installer | php
```

Add headzoo/nexmo to your composer.json:

```
"require": {
	"headzoo/nexmo": "dev-master"
}
```

Or run the Composer command to install the latest stable version of headzoo/nexmo:

```
composer require headzoo/nexmo
```

After installing, you need to require Composer's autoloader:

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

### Usage

[](#usage)

```
use Headzoo\Nexmo\Sms;
use Headzoo\Nexmo\Exception\Exception;

// Start by creating an instance of Sms. You must have a Nexmo API key and secret, which you can find
// on the Nexmo dashboard. https://dashboard.nexmo.com/private/dashboard
// You also provide the "from" number or name. Each text you sent with the Sms instance will be sent
// from that number.
$nexmo_api_key = "n3xm0rocks";
$nexmo_api_secret = "12ab34cd";
$from = "12015555555";
$sms = Sms::factory($nexmo_api_key, $nexmo_api_secret, $from);

// To send a text message you pass the number you are sending to, in international format, along with
// the message to send. A Response instance is returned from which you can gather the details of the
// sent message. Keep in mind Nexmo may break up your text into several messages depending on
// the size of the sent message, and the Response will contain multiple Message instances.
try {
	$to = "19295555555";
	$message = "Hello, World!";
	$response = $sms->text($to, $message);
	foreach($response as $message) {
		echo "Message ID: " . $message->getId();
		echo "Message price: " . $message->getPrice();
		echo "Remaining balance: " . $message->getBalance();
	}
} catch (Exception $e) {
	echo $e->getMessage();
}
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

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

Total

9

Last Release

4125d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/707209?v=4)[Sean H](/maintainers/headzoo)[@headzoo](https://github.com/headzoo)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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