From b30241aa5e7b520de27ae58be34a2678b87242f6 Mon Sep 17 00:00:00 2001 From: Michael Heap Date: Tue, 5 Sep 2017 19:00:53 +0100 Subject: [PATCH] Update nexmo/laravel versions in the README --- README.md | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 3ce5c6d..3ec5f3f 100644 --- a/README.md +++ b/README.md @@ -6,15 +6,12 @@ Installation ------------ To install the PHP client library using Composer: - - composer require nexmo/laravel -*Important note*: While the client library is in `beta`, requiring `nexmo/client` specifically avoids changing the -`minimum-stability` in your `composer.json`. + composer require nexmo/laravel Alternatively, add these two lines to your composer require section: - "nexmo/laravel": "0.4.0" + "nexmo/laravel": "^1.0" ### Laravel 5.5+ @@ -25,23 +22,24 @@ If you're using Laravel 5.5 or above, the package will automatically register th Add `Nexmo\Laravel\NexmoServiceProvider` to the `providers` array in your `config/app.php`: Nexmo\Laravel\NexmoServiceProvider::class - + If you want to use the facade interface, you can `use` the facade class when needed: - + use Nexmo\Laravel\Facade\Nexmo; - + Or add an alias in your `config/app.php`: 'Nexmo' => \Nexmo\Laravel\Facade\Nexmo::class Configuration ------------- - + You can use `artisan vendor:publish` to copy the distribution configuration file to your app's config directory: php artisan vendor:publish - -Then update `config/nexmo.php` with your credentials. You can also update your `.env` file with the following: + +Then update `config/nexmo.php` with your credentials. Alternatively, you can update your `.env` file with the following: + ``` NEXMO_KEY = my_api_key NEXMO_SECRET = my_secret @@ -59,15 +57,14 @@ To use the Nexmo Client Library you can use the facade, or request the instance ]); //or - + $nexmo = app('Nexmo\Client'); $nexmo->message()->send([ 'to' => '14845551244', 'from' => '16105552344', 'text' => 'Using the instance to send a message.' ]); - - -For more information on using the Nexmo client library, see the [official client library repository][client-library]. + +For more information on using the Nexmo client library, see the [official client library repository][client-library]. [client-library]: https://github.com/Nexmo/nexmo-php