seymur / clockworksms
Laravel api for clockworksms
Installs: 31
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 1
Open Issues: 1
Type:laravel
Requires
- php: >=5.5.0
- guzzlehttp/guzzle: ^6.3
This package is auto-updated.
Last update: 2024-11-29 03:36:44 UTC
README
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);