Download the PHP package laraditz/twilio without Composer
On this page you can find all versions of the php package laraditz/twilio. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download laraditz/twilio
More information about laraditz/twilio
Files in laraditz/twilio
Package twilio
Short Description Twilio SDk wrapper for Laravel
License MIT
Homepage https://github.com/laraditz/twilio
Informations about the package twilio
Laravel Twilio
Twilio SDk wrapper for Laravel. Includes event for receiving messages and status updates.
Installation
You can install the package via composer:
Before Start
Configure your variables in your .env
(recommended) or you can publish the config file and change it there.
(Optional) You can publish the config file via this command:
Run the migration command to create the necessary database table.
Add routeNotificationForTwilio
method to your Notifiable model.
Usage
Now you can use the channel in your via()
method inside the notification:
You can also send SMS:
Event
This package also provide an event to allow your application to listen for Twilio message receive and status callback. You can create your listener and register it under event below.
Event | Description |
---|---|
Laraditz\Twilio\Events\MessageReceived | When a message comes in. |
Laraditz\Twilio\Events\StatusCallback | Receive status update. |
Webhook URL
You may setup the URLs below on Twilio dashboard so that Twilio will push new messages and status update to it and it will then trigger the MessageReceived
and StatusCallback
events above.
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Raditz Farhan
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of twilio with dependencies
illuminate/support Version ^8.0||^9.0
illuminate/http Version ^8.0||^9.0
illuminate/database Version ^8.0||^9.0
twilio/sdk Version ^6.42