combindma / laravel-twilio
Laravel Twillio SMS API Integration
2.1.0
2024-03-16 00:22 UTC
Requires
- php: ^8.2
- illuminate/contracts: ^10.0|^11.0
- spatie/laravel-package-tools: ^1.11.3
- twilio/sdk: ^7.0
Requires (Dev)
- larastan/larastan: ^2.0.1
- laravel/pint: ^1.0
- nunomaduro/collision: ^7.0|^8.0
- orchestra/testbench: ^8.0|^9.0
- pestphp/pest: ^2.0
- pestphp/pest-plugin-arch: ^2.0
- pestphp/pest-plugin-laravel: ^2.0
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
README
Laravel Twillio SMS API IntegrationLaravel Twillio SMS API Integration
Installation
You can install the package via composer:
composer require combindma/laravel-twilio
You can publish the config file with:
php artisan vendor:publish --tag="laravel-twilio-config"
This is the contents of the published config file:
return [ /* |-------------------------------------------------------------------------- | SID |-------------------------------------------------------------------------- | | Your Twilio Account SID # | */ 'sid' => env('TWILIO_SID', ''), /* |-------------------------------------------------------------------------- | Access Token |-------------------------------------------------------------------------- | | Access token that can be found in your Twilio dashboard | */ 'token' => env('TWILIO_AUTH_TOKEN', ''), /* |-------------------------------------------------------------------------- | From Number |-------------------------------------------------------------------------- | | The Phone number registered with Twilio that your SMS & Calls will come from | */ 'from' => env('TWILIO_NUMBER', ''), /* |-------------------------------------------------------------------------- | Enable |-------------------------------------------------------------------------- | | Enable or disable script rendering. Useful for local development. | */ 'enabled' => env('TWILIO_ENABLED', true), ];
Usage
use Combindma\Twilio\Facades\Twilio; Twilio::message($phone, $message);
Testing
composer test
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.