2017 © Pedro Peláez
 

library nexmo

This is a Laravel4 package that helps you integrate Nexmo sms services into your site.

image

christian-giupponi/nexmo

This is a Laravel4 package that helps you integrate Nexmo sms services into your site.

  • Wednesday, April 29, 2015
  • by ChrisGiupponi
  • Repository
  • 1 Watchers
  • 4 Stars
  • 2,538 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Laravel-4-Nexmo

This is a Laravel4 package that helps you integrate Nexmo sms services into your site.
This is a work in progress so right now these are the function available:, (*1)

  1. Get Account Balance
  2. Get Prices and Carriers
  3. Send SMS

Laravel 4.2 and below

You can install this package through Composer. Edit your composer.json file and add christian-giupponi/nexmo to the required:, (*2)

"require" : {
    "christian-giupponi/nexmo": "dev-master"
}

ext, update Composer from the Terminal:, (*3)

composer update

Now you have to add the Service Provider so edit your app/config/app.php file and in the providers array add:, (*4)

'ChristianGiupponi\Nexmo\NexmoServiceProvider'

Now add the Facade in aliases array:, (*5)

    'Nexmo'    => 'ChristianGiupponi\Nexmo\Facades\Nexmo',

You also need to pusblish the config file to add your own api and secret key that you can find on your Nexmo's dashboard:, (*6)

php artisan config:publish christian-giupponi/nexmo

And you're done. Now you can call nexmo package using, (*7)

Nexmo::getBalance();
Nexmo::prices();
Nexmo::sendSMS($from, $to, $text, $options);

Results

All the function of this package will return a json result. It is made with 3 fiedls:, (*8)

1. code
2. reason
3. body

1. Code

This fields will return an http code status that is generated by the http request and represent the result of the api call, is not the code returned from Nexmo.
It is generated by the Guzzle client and you can check if the request is correct., (*9)

2. Reason

Like the above it is generated by Gruzzle and contains the result of the api request, not the response from Nexmo.
In this fild you can check if there are any errors, like malformed request., (*10)

3. Body

This is a Json result sent by Nexmo after we call its api, (*11)

Issue

If you find any issue please post it here on GitHub, fell free to fork and add any new api call that you need and then please make a pull request to keep this project updated., (*12)

The Versions

29/04 2015

dev-master

9999999-dev

This is a Laravel4 package that helps you integrate Nexmo sms services into your site.

  Sources   Download

The Requires

 

by Christian Giupponi

13/04 2015

dev-develop

dev-develop

This is a Laravel5 package that helps you integrate Nexmo sms services into your site.

  Sources   Download

The Requires

 

by ChristianGiupponi

01/11 2014

1.0

1.0.0.0

This is a Laravel4 package that helps you integrate Nexmo sms services into your site.

  Sources   Download

The Requires

 

by Christian Giupponi