PHPackages                             civocr/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. civocr/nexmo-php-lib

ActiveLibrary

civocr/nexmo-php-lib
====================

218.9k↓100%1PHP

Since Jun 7Pushed 12y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

```
Sending SMS via the Nexmo SMS gateway.

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
--------------------

 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.

 Your message appears to have been sent but you do not recieve it.

    Run the example.php file included. This will show any errors that
    are returned from Nexmo.
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.9% 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/65c11a0099da38ce092c795021fdfa46d98ff92863e8f7715b3d65f26bedcbe4?d=identicon)[civocr](/maintainers/civocr)

---

Top Contributors

[![prawnsalad](https://avatars.githubusercontent.com/u/725880?v=4)](https://github.com/prawnsalad "prawnsalad (31 commits)")[![swahome](https://avatars.githubusercontent.com/u/741247?v=4)](https://github.com/swahome "swahome (2 commits)")

### Embed Badge

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

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

PHPackages © 2026

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