PHPackages                             artistan/nexmo - 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. artistan/nexmo

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

artistan/nexmo
==============

Nexmo Sms Client

v0.2.0(10y ago)717.9k11[1 PRs](https://github.com/Artistan/nexmo/pulls)GPL-3.0+PHPPHP &gt;=5.3.0

Since May 21Pushed 10y ago1 watchersCompare

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

READMEChangelog (6)Dependencies (4)Versions (7)Used By (0)

Nexmo for Laravel 5
===================

[](#nexmo-for-laravel-5)

Implements a service for Nexmo messaging based on

### Composer Configuration

[](#composer-configuration)

Include the artistan nexmo package as a dependency in your `composer.json` [Packagist](https://packagist.org/packages/artistan/nexmo):

```
"artistan/nexmo": "0.1.*"

```

### Installation

[](#installation)

Once you update your composer configuration, run `composer install` to download the dependencies.

Add a ServiceProvider to your providers array in `app/config/app.php`:

```
'providers' => array(

	'Artistan\Nexmo\NexmoServiceProvider',

)

```

### Publish the Vendor Config

[](#publish-the-vendor-config)

php artisan vendor:publish --provider="Artistan\\Nexmo\\NexmoServiceProvider"

### Usage - work in progress

[](#usage---work-in-progress)

Sending SMS via the Nexmo SMS gateway.

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

[](#quick-examples)

1. Sending an SMS

    $sms = new Artistan\\Nexmo\\Service\\Message\\Sms; OR $sms = \\App::make('nexmosmsmessage'); AND $result = $sms-&gt;sendText('15005554320','15555633637','dude, this is from a laravel package');

    OR

    $sms = NexmoSmsMessage::sendText('15005554320','15555633637','dude, this is from a laravel package');
2. Recieving SMS

// TODO:: setup default routing for this... $sms = new Artistan\\Nexmo\\Service\\Message\\Sms; OR $sms = \\App::make('nexmosmsmessage'); AND if ($sms-&gt;inboundText()) { $sms-&gt;reply('You said: ' . $sms-&gt;text); }

```
 OR

if(NexmoAccount::inboundText()){
     NexmoAccount::reply('You said: ' . $sms->text);
}

```

3. Receiving a message receipt

// TODO:: setup default routing for this... $receipt = new Artistan\\Nexmo\\Service\\Receipt; OR $receipt = \\App::make('nexmoreceipt'); AND if ($receipt-&gt;exists()) { switch ($receipt-&gt;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 Artistan\\Nexmo\\Service\\Account; OR $account = \\App::make('nexmoaccount'); AND $numbers = $account-&gt;numbersList();

    OR

    $numbers = NexmoAccount::numbersList();

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

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

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 72.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.

###  Release Activity

Cadence

Every ~105 days

Recently: every ~131 days

Total

6

Last Release

3846d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fc511d79233a52b0bb85db90dcac069b3482399e1a6778acfd1825092a2de9cb?d=identicon)[Artistan](/maintainers/Artistan)

---

Top Contributors

[![Artistan](https://avatars.githubusercontent.com/u/801349?v=4)](https://github.com/Artistan "Artistan (8 commits)")[![imknight](https://avatars.githubusercontent.com/u/77604?v=4)](https://github.com/imknight "imknight (3 commits)")

---

Tags

clientlaravelsmslaravel4artistan

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/artistan-nexmo/health.svg)

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

###  Alternatives

[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[tzsk/sms

A robust and unified SMS gateway integration package for Laravel, supporting multiple providers.

320244.3k6](/packages/tzsk-sms)[gr8shivam/laravel-sms-api

A modern, flexible Laravel package for integrating any SMS gateway with REST API support

10138.4k](/packages/gr8shivam-laravel-sms-api)[ghanem/laravel-smsmisr

Send SMS and SMS Notification via SMS Misr for Laravel

194.8k](/packages/ghanem-laravel-smsmisr)

PHPackages © 2026

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