creativecrafts / laravel-twillio-sms
A simple package to send sms messages using twillio
1.0.0
2024-03-17 06:09 UTC
Requires
- php: ^8.2
- illuminate/contracts: ^11.0|^10.0
- spatie/laravel-package-tools: ^1.16
- twilio/sdk: ^7.7
Requires (Dev)
- larastan/larastan: ^2.9
- laravel/pint: ^1.14
- nunomaduro/collision: ^8.1|^7.0
- orchestra/testbench: ^9.0|^8.0
- pestphp/pest: ^2.34
- pestphp/pest-plugin-arch: ^2.7
- pestphp/pest-plugin-laravel: ^2.3
- phpstan/extension-installer: ^1.3
- phpstan/phpstan-deprecation-rules: ^1.1
- phpstan/phpstan-phpunit: ^1.3
This package is auto-updated.
Last update: 2024-04-29 02:54:19 UTC
README
This is a simple package to send sms messages using twillio sms service.
Installation
You can install the package via composer:
composer require creativecrafts/laravel-twillio-sms
You can publish the config file with:
php artisan vendor:publish --tag="twillio-sms-config"
This is the contents of the published config file:
return [ 'account_sid' => env('TWILIO_ACCOUNT_SID'), 'auth_token' => env('TWILIO_AUTH_TOKEN'), 'sms_from' => env('TWILIO_SMS_FROM'), ];
Usage
// You can use the facade like this $laravelTwillioSms = \creativeCrafts\LaravelTwillioSms\Facades\LaravelTwillioSms::sendSms('+1234566798', 'Hello World from Laravel Twillio SMS'); // or it can be used like this $laravelTwillioSms = (new \creativeCrafts\LaravelTwillioSms\LaravelTwillioSms())('+1234566798', 'Hello World from Laravel Twillio SMS'); // or it can be used like this $laravelTwillioSmsClient = new \creativeCrafts\LaravelTwillioSms\LaravelTwillioSms(); $laravelTwillioSms = $laravelTwillioSmsClient->sendSms('+1234566798', 'Hello World from Laravel Twillio SMS');
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
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.