PHPackages                             andreasanta/nexmo-php-lib - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. andreasanta/nexmo-php-lib

ActiveLibrary[HTTP &amp; Networking](/categories/http)

andreasanta/nexmo-php-lib
=========================

013PHP

Since Jun 23Pushed 9y ago1 watchersCompare

[ Source](https://github.com/Yondbee/Nexmo-PHP-lib)[ Packagist](https://packagist.org/packages/andreasanta/nexmo-php-lib)[ RSS](/packages/andreasanta-nexmo-php-lib/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Nexmo-PHP-lib
=============

[](#nexmo-php-lib)

Sending SMS via the Nexmo SMS gateway.

Quick Examples
--------------

[](#quick-examples)

1. Sending an SMS

```
$sms = new NexmoMessage('account_key', 'account_secret');
$sms->sendText( '+447234567890', 'MyApp', 'Hello world!' );
```

2. Recieving SMS

```
$sms = new NexmoMessage('account_key', 'account_secret');
if ($sms->inboundText()) {
    $sms->reply('You said: ' . $sms->text);
}
```

3. Recieving a message receipt

```
$receipt = new NexmoReceipt();
if ($receipt->exists()) {
    switch ($receipt->status) {
        case $receipt::STATUS_DELIVERED:
             // The message was delivered to the handset!
             break;

         case $receipt::STATUS_FAILED:
         case $receipt::STATUS_EXPIRED:
             // The message failed to be delivered
             break;
    }
}
```

4. List purchased numbers on your account

```
$account = new NexmoAccount('account_key', 'account_secret');
$numbers = $account->numbersList();
```

Most Frequent Issues
--------------------

[](#most-frequent-issues)

### Sending a message returns false.

[](#sending-a-message-returns-false)

This is usually due to your webserver unable to send a request to Nexmo. Make sure the following are met:

1. Either CURL is enabled for your PHP installation or the PHP option `allow_url_fopen` is set to `1` (default).
2. You have no firewalls blocking access to `rest.nexmo.com/sms/json` on port 443.

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 76.7% 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/ad9d078ed174670c69aa46db606c3a6c98a96304a2265d471ac1d287a3e638ff?d=identicon)[avegao](/maintainers/avegao)

---

Top Contributors

[![prawnsalad](https://avatars.githubusercontent.com/u/725880?v=4)](https://github.com/prawnsalad "prawnsalad (33 commits)")[![andreasanta](https://avatars.githubusercontent.com/u/2172149?v=4)](https://github.com/andreasanta "andreasanta (6 commits)")[![swahome](https://avatars.githubusercontent.com/u/741247?v=4)](https://github.com/swahome "swahome (2 commits)")[![bpneal](https://avatars.githubusercontent.com/u/438219?v=4)](https://github.com/bpneal "bpneal (1 commits)")[![wmather](https://avatars.githubusercontent.com/u/3214643?v=4)](https://github.com/wmather "wmather (1 commits)")

### Embed Badge

![Health badge](/badges/andreasanta-nexmo-php-lib/health.svg)

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

###  Alternatives

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78026.4M414](/packages/react-http)[php-http/curl-client

PSR-18 and HTTPlug Async client with cURL

48347.0M384](/packages/php-http-curl-client)[smi2/phpclickhouse

PHP ClickHouse Client

84310.1M71](/packages/smi2-phpclickhouse)

PHPackages © 2026

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