PHPackages                             crboy/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. [Mail &amp; Notifications](/categories/mail)
4. /
5. crboy/nexmo-php-lib

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

crboy/nexmo-php-lib
===================

1161PHP

Since Apr 2Pushed 12y ago1 watchersCompare

[ Source](https://github.com/CrBoy/Nexmo-PHP-lib)[ Packagist](https://packagist.org/packages/crboy/nexmo-php-lib)[ RSS](/packages/crboy-nexmo-php-lib/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Sending SMS via the Nexmo SMS gateway.
======================================

[](#sending-sms-via-the-nexmo-sms-gateway)

Installation
------------

[](#installation)

```
[user@project_path]$ composer require crboy/nexmo-php-lib

```

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

[](#quick-examples)

1. Sending an SMS

    ```
    $sms = new NexmoMessage('account_key', 'account_secret');
    $sms->sendText('+886900000000', '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.

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

[](#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

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community14

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://avatars.githubusercontent.com/u/128997?v=4)[CrBoy](/maintainers/CrBoy)[@CrBoy](https://github.com/CrBoy)

---

Top Contributors

[![prawnsalad](https://avatars.githubusercontent.com/u/725880?v=4)](https://github.com/prawnsalad "prawnsalad (33 commits)")[![CrBoy](https://avatars.githubusercontent.com/u/128997?v=4)](https://github.com/CrBoy "CrBoy (5 commits)")[![swahome](https://avatars.githubusercontent.com/u/741247?v=4)](https://github.com/swahome "swahome (2 commits)")[![aminzai](https://avatars.githubusercontent.com/u/71848?v=4)](https://github.com/aminzai "aminzai (1 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/crboy-nexmo-php-lib/health.svg)

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

###  Alternatives

[maize-tech/laravel-email-domain-rule

Laravel Email Domain Rule

612.0k](/packages/maize-tech-laravel-email-domain-rule)[sarfraznawaz2005/noty

Laravel package to incorporate noty flash notifications into laravel.

324.5k](/packages/sarfraznawaz2005-noty)

PHPackages © 2026

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