PHPackages                             2amigos/yii2-nexmo-library - 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. 2amigos/yii2-nexmo-library

AbandonedArchivedYii2-extension[API Development](/categories/api)

2amigos/yii2-nexmo-library
==========================

The Nexmo library for the Yii framework

1.0.1(8y ago)25.7k8[1 issues](https://github.com/2amigos/yii2-nexmo-library/issues)BSD-3-ClausePHPPHP &gt;=5.5

Since May 25Pushed 8y ago8 watchersCompare

[ Source](https://github.com/2amigos/yii2-nexmo-library)[ Packagist](https://packagist.org/packages/2amigos/yii2-nexmo-library)[ Docs](https://github.com/2amigos/yii2-nexmo-library)[ RSS](/packages/2amigos-yii2-nexmo-library/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (3)Versions (5)Used By (0)

Nexmo Library for Yii2
======================

[](#nexmo-library-for-yii2)

[![Latest Version](https://camo.githubusercontent.com/f8fc1797327ee7e2c249c589e065f19c47c8478450d44b4fdcf7ef0f57b20ce9/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f32616d69676f732f796969322d6e65786d6f2d6c6962726172792e7376673f7374796c653d666c61742d737175617265266c6162656c3d72656c65617365)](https://github.com/2amigos/yii2-nexmo-library/tags)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/6069d6f7bcc34725ab5418085d1246777db8afea3db94269ce72093581b64a62/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f32616d69676f732f796969322d6e65786d6f2d6c6962726172792f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/2amigos/yii2-nexmo-library)[![Coverage Status](https://camo.githubusercontent.com/50f2a72e2dc1d6c048ff8ffa6e8c9e5240cdfd4eb3e650d11b885842122236da/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f32616d69676f732f796969322d6e65786d6f2d6c6962726172792e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/2amigos/yii2-nexmo-library/code-structure)[![Quality Score](https://camo.githubusercontent.com/69f6eed6ee144cae85c7c1b9f0ba9d6b6afb79c541c46d91f3da2bf31038a509/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f32616d69676f732f796969322d6e65786d6f2d6c6962726172792e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/2amigos/yii2-nexmo-library)[![Total Downloads](https://camo.githubusercontent.com/e3b9853b43b3962fac8b24e01b07f86866b62a413d3d520eed02eac0d845af44/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f32616d69676f732f796969322d6e65786d6f2d6c6962726172792e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/2amigos/yii2-nexmo-library)

Nexmo Library allows Yii programmers to use the Restful API offered by Mobile Messaging provider [Nexmo](https://es.nexmo.com/).

[Nexmo](https://es.nexmo.com/) is a cloud-based SMS API that lets you send and receive high volume of messages at wholesale rates.

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
$ composer require 2amigos/yii2-nexmo-library:~1.0
```

or add

```
"2amigos/yii2-nexmo-library": "~1.0"

```

to the `require` section of your `composer.json` file.

Usage
-----

[](#usage)

First you have to create your \[Nexmo account\](Nexmo API credentials) and get your API\_KEY and API\_SECRET.

```
// to send an sms message
$sms = new \dosamigos\nexmo\Sms(['key' => 'API_KEY', 'secret' => 'API_SECRET', 'from' => 'SENDERID']);

// lets call the API to get a json response
$sms->format = 'json';

// send a message with an optional parameter (see Nexmo doc for more optional parameters)
$response = $sms->sendText('RECIPIENTSNUMBER', 'Hello World!', ['clientRef' => 'YOURCLIENTREF']);

// if a response expects a JSON object, it will return as an array, if format was a XML, it will return an object.
echo $response['message-count']; // the number of parts the message was split into
```

Testing
-------

[](#testing)

```
$ ./vendor/bin/phpunit
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Antonio Ramirez](https://github.com/tonydspaniard)
- [Alexander Kochetov](https://github.com/creocoder)
- [All Contributors](https://github.com/2amigos/yii2-nexmo-library/graphs/contributors)

License
-------

[](#license)

The BSD License (BSD). Please see [License File](LICENSE.md) for more information.

> [![](https://camo.githubusercontent.com/9fd8f1de41dc23003bb2a54034cb6658dde5be97092e195a62d629d0d7fa7f6c/687474703a2f2f7777772e67726176617461722e636f6d2f6176617461722f35353336333339346437323934356666376564333132353536656330343165302e706e67)](http://www.2amigos.us)
>  *web development has never been so fun*
>  [www.2amigos.us](http://www.2amigos.us)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance10

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

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

###  Release Activity

Cadence

Every ~555 days

Total

3

Last Release

3259d ago

Major Versions

0.1.0 → 1.0.02017-05-04

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/566016?v=4)[Antonio Ramirez](/maintainers/tonydspaniard)[@tonydspaniard](https://github.com/tonydspaniard)

---

Top Contributors

[![Jurets](https://avatars.githubusercontent.com/u/5271071?v=4)](https://github.com/Jurets "Jurets (14 commits)")[![tonydspaniard](https://avatars.githubusercontent.com/u/566016?v=4)](https://github.com/tonydspaniard "tonydspaniard (7 commits)")[![creocoder](https://avatars.githubusercontent.com/u/896494?v=4)](https://github.com/creocoder "creocoder (1 commits)")[![samdark](https://avatars.githubusercontent.com/u/47294?v=4)](https://github.com/samdark "samdark (1 commits)")

---

Tags

yii2yiiyii 2nexmo2amigos

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/2amigos-yii2-nexmo-library/health.svg)

```
[![Health](https://phpackages.com/badges/2amigos-yii2-nexmo-library/health.svg)](https://phpackages.com/packages/2amigos-yii2-nexmo-library)
```

PHPackages © 2026

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