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 3d 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 19% 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://www.gravatar.com/avatar/dc08823a42d9dda282ef87ad73653feca4c2caee027c934738c0e40bd12178e3?d=identicon)[jonathanlu813](/maintainers/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

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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