2017 © Pedro Peláez
 

yii2-extension yii2-nexmo

Yii2 nexmo is a wrapper for the Nexmo PHP library. Allow yii2 application to use nexmo services.

image

dpodium/yii2-nexmo

Yii2 nexmo is a wrapper for the Nexmo PHP library. Allow yii2 application to use nexmo services.

  • Friday, January 5, 2018
  • by dpodium
  • Repository
  • 4 Watchers
  • 1 Stars
  • 131 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 14 Versions
  • 20 % Grown

The README.md

Yii2 Nexmo

Nexmo yii2 wrapper. Enable nexmo services in yii2 application., (*1)

Installation

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

Either run, (*3)

php composer.phar require dpodium/yii2-nexmo "*"

or add, (*4)

"dpodium/yii2-nexmo": "*"

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

Component Setup

Once the extension is installed, simply modify your application configuration as follows:, (*6)

return [
    'components' => [
    ...
        'nexmo' => [
                   'class' => dpodium\yii2\Nexmo\NexmoManager::class,
                   'config' => [
                                   'api.key' => API_KEY, //from nexmo
                                   'api.secret' => API_SECRET, //from nexmo
                               ],
                   //leave blank if not applicable
                   'proxy' => [
                                   'host' => HOST,
                                   'port' => PORT,
                               ],
               ],
        ...
    ],
    ...
];

Usage, (*7)


Sending message
Yii::$app->nexmo->sendSms(TO, FROM, 'Test Nexmo Message');

Receiving A Message
Yii::$app->nexmo->receiveMessage();

Fetching A Message
Yii::$app->nexmo->fetchMessage(MESSAGE_ID);

Starting a Verification
Yii::$app->nexmo->initVerification(NUMBER, BRAND);

Controlling a Verification
Trigger
Yii::$app->nexmo->triggerVerification(REQUEST_ID);
Cancel
Yii::$app->nexmo->cancelVerification(REQUEST_ID);

Checking A Verification
Yii::$app->nexmo->checkVerification(REQUEST_ID, CODE);

Searching For A Verification
Yii::$app->nexmo->searchVerification(REQUEST_ID);

The Versions

05/01 2018

dev-master

9999999-dev

Yii2 nexmo is a wrapper for the Nexmo PHP library. Allow yii2 application to use nexmo services.

  Sources   Download

BSD

The Requires

 

The Development Requires

yii2 sms nexmo

08/05 2017

1.3

1.3.0.0

Yii2 nexmo is a wrapper for the Nexmo PHP library. Allow yii2 application to use nexmo services.

  Sources   Download

BSD

The Requires

 

The Development Requires

yii2 sms nexmo

20/03 2017

1.2

1.2.0.0

Yii2 nexmo is a wrapper for the Nexmo PHP library. Allow yii2 application to use nexmo services.

  Sources   Download

BSD

The Requires

 

The Development Requires

yii2 sms nexmo

21/07 2016

1.1

1.1.0.0

Yii2 nexmo is a wrapper for the Nexmo PHP library. Allow yii2 application to use nexmo services.

  Sources   Download

BSD

The Requires

 

The Development Requires

yii2 sms nexmo

19/07 2016

1.0

1.0.0.0

Yii2 nexmo is a wrapper for the Nexmo PHP library. Allow yii2 application to use nexmo services.

  Sources   Download

BSD

The Requires

 

The Development Requires

yii2 sms nexmo

19/07 2016

0.9.6

0.9.6.0

Yii2 nexmo is a wrapper for the Nexmo PHP library. Allow yii2 application to use nexmo services.

  Sources   Download

BSD

The Requires

 

The Development Requires

yii2 sms nexmo

18/07 2016

0.9.5

0.9.5.0

Yii2 nexmo is a wrapper for the Nexmo PHP library. Allow yii2 application to use nexmo services.

  Sources   Download

BSD

The Requires

 

yii2 sms nexmo

18/07 2016

0.9.4

0.9.4.0

Yii2 nexmo is a wrapper for the Nexmo PHP library. Allow yii2 application to use nexmo services.

  Sources   Download

BSD

The Requires

 

yii2 sms nexmo

18/07 2016

0.9.3

0.9.3.0

Yii2 nexmo is a wrapper for the Nexmo PHP library. Allow yii2 application to use nexmo services.

  Sources   Download

BSD

The Requires

 

yii2 sms nexmo

18/07 2016

0.9.1

0.9.1.0

Yii2 nexmo is a wrapper for the Nexmo PHP library. Allow yii2 application to use nexmo services.

  Sources   Download

BSD

The Requires

 

yii2 sms nexmo

18/07 2016

0.9

0.9.0.0

Yii2 nexmo is a wrapper for the Nexmo PHP library. Allow yii2 application to use nexmo services.

  Sources   Download

BSD

The Requires

 

yii2 sms nexmo

15/07 2016

0.5

0.5.0.0

Yii2 nexmo is a wrapper for the Nexmo PHP library. Allow yii2 application to use nexmo services.

  Sources   Download

BSD

The Requires

 

yii2 sms nexmo

14/07 2016

0.2

0.2.0.0

Yii2 nexmo is a wrapper for the Nexmo PHP library. Allow yii2 application to use nexmo services.

  Sources   Download

BSD

The Requires

 

yii2 sms nexmo

14/07 2016

0.1

0.1.0.0

Yii2 nexmo is a wrapper for the Nexmo PHP library. Allow yii2 application to use nexmo services.

  Sources   Download

BSD

The Requires

 

yii2 sms nexmo