Telerivet wrapper for laravel developers
You can install the package via composer:
composer require epmnzava/telerivet
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 configuration file and migrations by running the provided console command:
php artisan vendor:publish --provider="Epmnzava\Telerivet\TelerivetServiceProvider" --tag="config"
TELERIVET_API_ID ` your provided telerivet project id `
TELERIVET_API_KEY ` your provided telerivet application key `
TELERIVET_WEB_HOOK ` COMING SOON `
// 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);
}
composer test
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email epmnzava@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.