Sending SMS with Nexmo in Laravel

In this tutorial I am going to discuss how to send SMS using Nexmo.

First you have to sign up in Nexmo website and you can use your free account for testing

Then you can install the PHP client library using Composer

You can add Nexmo\Laravel\NexmoServiceProvider to the providers array in your config/app.php

In your .env file. You can put the key and secret

Now you can create route in routes\web.php file

In your SMSController, you can put the following code to send SMS

Now you can send the SMS using following URL

You can see the SMS like this in your phone