PHPackages                             jonathanlu813/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. [API Development](/categories/api)
4. /
5. jonathanlu813/nexmo-php-lib

ActiveLibrary[API Development](/categories/api)

jonathanlu813/nexmo-php-lib
===========================

024PHP

Since Aug 20Pushed 12y ago1 watchersCompare

[ Source](https://github.com/jonathanlu813/Nexmo-PHP-lib)[ Packagist](https://packagist.org/packages/jonathanlu813/nexmo-php-lib)[ RSS](/packages/jonathanlu813-nexmo-php-lib/feed)WikiDiscussions master Synced 3w 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

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 74.4% 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://avatars.githubusercontent.com/u/1576268?v=4)[Jonathan Lu](/maintainers/jonathanlu813)[@jonathanlu813](https://github.com/jonathanlu813)

---

Top Contributors

[![prawnsalad](https://avatars.githubusercontent.com/u/725880?v=4)](https://github.com/prawnsalad "prawnsalad (32 commits)")[![jonathanlu813](https://avatars.githubusercontent.com/u/1576268?v=4)](https://github.com/jonathanlu813 "jonathanlu813 (8 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)")

### Embed Badge

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

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

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35916.4M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24016.2M19](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

93459.5k6](/packages/botman-driver-telegram)

PHPackages © 2026

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