2017 © Pedro Peláez
 

yii2-extension yii2-nexmo-library

The Nexmo library for the Yii framework

image

2amigos/yii2-nexmo-library

The Nexmo library for the Yii framework

  • Monday, June 12, 2017
  • by tonydspaniard
  • Repository
  • 12 Watchers
  • 2 Stars
  • 906 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 8 Forks
  • 1 Open issues
  • 5 Versions
  • 11 % Grown

The README.md

Nexmo Library for Yii2

Latest Version Software License Build Status Coverage Status Quality Score Total Downloads, (*1)

Nexmo Library allows Yii programmers to use the Restful API offered by Mobile Messaging provider Nexmo., (*2)

Nexmo is a cloud-based SMS API that lets you send and receive high volume of messages at wholesale rates., (*3)

Installation

The preferred way to install this extension is through composer., (*4)

Either run, (*5)

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

or add, (*6)

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

to the require section of your composer.json file., (*7)

Usage

First you have to create your [Nexmo account](Nexmo API credentials) and get your API_KEY and API_SECRET., (*8)

// 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

$ ./vendor/bin/phpunit

Contributing

Please see CONTRIBUTING for details., (*9)

Credits

License

The BSD License (BSD). Please see License File for more information., (*10)


web development has never been so fun
www.2amigos.us

The Versions

12/06 2017

dev-master

9999999-dev https://github.com/2amigos/yii2-nexmo-library

The Nexmo library for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

extension library yii2 2amigos yii yii 2 nexmo

09/06 2017

1.0.1

1.0.1.0 https://github.com/2amigos/yii2-nexmo-library

The Nexmo library for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

yii2 2amigos yii yii 2 nexmo

04/05 2017

1.0.0

1.0.0.0 https://github.com/2amigos/yii2-nexmo-library

The Nexmo library for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

yii2 2amigos yii yii 2 nexmo

04/05 2017

dev-develop

dev-develop https://github.com/2amigos/yii2-nexmo-library

The Nexmo library for the Yii framework

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

by Alexander Kochetov

yii2 2amigos yii yii 2 nexmo

25/05 2014

0.1.0

0.1.0.0

Allows .

  Sources   Download

BSD-3-Clause

The Requires

 

extension library yii nexmo