asorasoft / plasgate
A simple PHP package for Plasgate SMS provider
v1.0.4
2021-11-21 03:57 UTC
Requires
- php: ^7.1
- guzzlehttp/guzzle: ^5.3 || ^6.5 || ^7.2
- illuminate/support: ^5.0 || ^6.0 || ^7.0 || ^8.0
Requires (Dev)
- orchestra/testbench: ^4.0
- phpunit/phpunit: ^8.0
README
A simple PHP package for Plasgate SMS provider.
Installation
You can install the package via composer:
composer require asorasoft/plasgate
Then add PlasgateServiceProvider
class into config/app.php
return [ "providers" => [ Asorasoft\Plasgate\PlasgateServiceProvider::class, ] ];
Usage
You need to publish the configuration files via command
php artisan vendor:publish --provider="Asorasoft\Plasgate\PlasgateServiceProvider"
Need to change plasgate.php
configuration such as token
, sender_Id
and base_url
use Asorasoft\Plasgate\Plasgate; $plasgate = new Plasgate(); $response = $plasgate->send('phone', 'your_text_message'); // GuzzleHttp Response
Testing
composer test
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 mabhelitc@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.