dev-master
9999999-devLaravel api for clockworksms
MIT
The Requires
- php >=5.5.0
- guzzlehttp/guzzle ^6.3
by Seymur Omarov
Laravel api for clockworksms
, (*1)
Laravel api for sending messages and checking balance with ClockWorkSms, (*2)
Require package: ``` bash composer require seymur/clockworksms:dev-master, (*3)
Now add the service provider in config/app.php file:
'providers' => [ // ... Seymur\Clockworksms\ClockWorkServiceProvider::class, ],, (*4)
after this add alias in config/app.php file:
'aliases' => [ //... 'Clockworksms' => Seymur\Clockworksms\Facades\Clockworksms::class, ],, (*5)
use command (optional):
composer dump-autoload, (*6)
now u can use api like this
use Seymur\Clockworksms\Facades\Clockworksms; //..., (*7)
Clockworksms::send($apiKey,$number,$message);
or you can use
\Seymur\Clockworksms\Facades\Clockworksms::send($apiKey,$number,$message);, (*8)
for sending bulk message use array
Clockworksms::send($apiKey,[441234567890,994515553344,441234567891],$message);
for checking balance use:
Clockworksms::balance($apiKey);
```, (*9)
Laravel api for clockworksms
MIT