epmnzava/telerivet

Telerivet https://telerivet.com wrapper for laravel

1.0.4 2022-02-16 14:43 UTC

This package is auto-updated.

Last update: 2024-12-16 20:49:09 UTC


README

This package helps you to easily get started with integrating with Telerivet service via API made for laravel developers

Latest Version on Packagist Build Status Quality Score Total Downloads

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.