nodes / twilio
Twilio service made for Laravel
Requires
- guzzlehttp/guzzle: ^6.1
- laravel/framework: >=5.1.0 <6.15.0
- nodes/core: 1.1.*
README
Send text messages with Twilio from your application
📝 Introduction
Integrates the Twilio service, which makes it unbelieable easy to send text messages from your application.
📦 Installation
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
🔧 Setup
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
⚙ Usage
Global method
twilio_sms($to, $body, $from = null) twilio_look_up($phoneNumber, $type = 'all')
🏆 Credits
This package is developed and maintained by the PHP team at Nodes
📄 License
This package is open-sourced software licensed under the MIT license