epmnzava / telerivet
Telerivet https://telerivet.com wrapper for laravel
1.0.4
2022-02-16 14:43 UTC
Requires
- php: ^7.1|^7.2|^7.3|^7.4|^8.0
- illuminate/support: ^5.5.44|^6.0|^7.0|^8.0|^9.0
- nesbot/carbon: ^2.44
Requires (Dev)
- orchestra/testbench: ^4.0
- phpunit/phpunit: ^8.0
README
This package helps you to easily get started with integrating with Telerivet service via API made for laravel developers
Installation
You can install the package via composer:
composer require epmnzava/telerivet
Update your config (for Laravel 5.4 and below)
Add the service provider to the providers array in config/app.php:
Epmnzava\Telerivet\TelerivetServiceProvider::class,
Add the facade to the aliases array in config/app.php:
'Sms' =>Epmnzava\Telerivet\TelerivetFacade,
Publish the package configuration (for Laravel 5.4 and below)
Publish the configuration file and migrations by running the provided console command:
php artisan vendor:publish --provider="Epmnzava\Telerivet\TelerivetServiceProvider" --tag="config"
Environmental Variables
-
TELERIVET_API_ID
your provided telerivet project id
-
TELERIVET_API_KEY
your provided telerivet application key
-
TELERIVET_WEB_HOOK
COMING SOON
Usage
Sending sms
// coming soon ... <?php use Epmnzava\Telerivet\Telerivet; class SendNotification extends Controller { public function send_sms(){ $sms=new Telerivet; $result=$sms->send_sms("+255679079774","This is a hellow world text"); echo json_encode($result); }
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 epmnzava@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.