| Package Data | |
|---|---|
| Maintainer Username: | seymuromarov |
| Maintainer Contact: | omarov.seymur@outlook.com (Seymur Omarov) |
| Package Create Date: | 2017-08-30 |
| Package Last Update: | 2017-08-30 |
| Language: | PHP |
| License: | MIT |
| Last Refreshed: | 2025-11-03 03:02:25 |
| Package Statistics | |
|---|---|
| Total Downloads: | 31 |
| Monthly Downloads: | 0 |
| Daily Downloads: | 0 |
| Total Stars: | 2 |
| Total Watchers: | 2 |
| Total Forks: | 1 |
| Total Open Issues: | 1 |
Laravel api for sending messages and checking balance with ClockWorkSms
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);