Skip to main content

Posts

Showing posts from September, 2016

SMS Integration using laravel 5.3 (Using Twilio trial account)

Installation Begin by installing this package through Composer. Run this command from the Terminal: composer require aloha/twilio Laravel integration To wire this up in your Laravel project, whether it's built in Laravel 4 or 5, you need to add the service provider. Open app.php , and add a new item to the providers array. ' Aloha\Twilio\Support\Laravel\ServiceProvider ' , This will register two new artisan commands for you: twilio:sms twilio:call And make these objects resolvable from the IoC container: Aloha\Twilio\Manager (aliased as twilio ) Aloha\Twilio\TwilioInterface (resolves a Twilio object, the default connection object created by the Manager ). There's a Facade class available for you, if you like. In your app.php config file add the following line to the aliases array if you want to use a short class name: ' Twilio ' => ' Aloha\Twilio\Support\Laravel\Facade ' , In Laravel 4 you can publish the de