Send text messages with Twilio from your application
Integrates the Twilio service, which makes it unbelieable easy to send text messages from your application.
To install this package you will need:
- Laravel 5.1+
- PHP 5.5.9+
You must then modify your composer.json
file and run composer update
to include the latest version of the package in your project.
"require": {
"nodes/twilio": "^1.0"
}
Or you can run the composer require command from your terminal.
composer require nodes/twilio:^1.0
In Laravel 5.5 and above, service providers and aliases are automatically registered. If you're using Laravel 5.5 or above, skip ahead directly to Publish config files.
Setup service provider in config/app.php
Nodes\Services\Twilio\ServiceProvider::class
Publish config files
php artisan vendor:publish --provider="Nodes\Services\Twilio\ServiceProvider"
If you want to overwrite any existing config files use the --force
parameter
php artisan vendor:publish --provider="Nodes\Services\Twilio\ServiceProvider" --force
twilio_sms($to, $body, $from = null)
twilio_look_up($phoneNumber, $type = 'all')
This package is developed and maintained by the PHP team at Nodes
This package is open-sourced software licensed under the MIT license