seymur/clockworksms

Laravel api for clockworksms

dev-master 2017-08-30 16:23 UTC

This package is auto-updated.

Last update: 2024-04-29 01:50:40 UTC


README

68747470733a2f2f6c61726176656c2e636f6d2f6173736574732f696d672f636f6d706f6e656e74732f6c6f676f2d6c61726176656c2e737667

About Project

Laravel api for sending messages and checking balance with ClockWorkSms

Requirements

Installation

Require package:

composer require seymur/clockworksms:dev-master

Now add the service provider in config/app.php file:

'providers' => [
    // ...
        Seymur\Clockworksms\ClockWorkServiceProvider::class,
],

after this add alias in config/app.php file:

'aliases' => [
 //...
     'Clockworksms' => Seymur\Clockworksms\Facades\Clockworksms::class,
 ],

use command (optional):

composer dump-autoload

now u can use api like this

use Seymur\Clockworksms\Facades\Clockworksms;
 //...

    Clockworksms::send($apiKey,$number,$message);

or you can use

\Seymur\Clockworksms\Facades\Clockworksms::send($apiKey,$number,$message);

for sending bulk message use array

    Clockworksms::send($apiKey,[441234567890,994515553344,441234567891],$message);

for checking balance use:

    Clockworksms::balance($apiKey);