ibtdi / hisms
send sms - using hisms.ws : an sms provider
1.0.0
2021-10-19 17:04 UTC
Requires
- php: >=7.2
- ext-json: *
Requires (Dev)
- guzzlehttp/guzzle: ^7.0
- orchestra/testbench: ^6.21
README
The ibtdi/hisms
package provides a fluent interface to send sms using HISMS in your php application.
HISMS Intro
we can send sms using HISMS sms service provider that allow only saudi arabia phone numbers
List Of Supported Numbers
Install
You can install the package via composer:
composer require ibtdi/hisms
Usage
- After install package run the installation command
php artisan hisms:install
or
vendor:publish --provider="Ibtdi\HiSms\HISmsServiceProvider" --tag="config"
- Set your env variables - take a look at
config/hisms.php
- Send first sms:
HiSms::to(['9665 xxx xxxx','9665 xxx xxxx'])
->message('hello world')
->send();
and that's it...
- other ways you would like to get some response it can be done like so:
$response=HiSms::to(['9665 xxx xxxx','9665 xxx xxxx'])
->message('hello world')
->send()
->andGetMessage();
- there are other functions to get infos individual not chaining
andGetStatus
andGetCode
$response=HiSms::to(['9665 xxx xxxx','9665 xxx xxxx'])
->message('hello world')
->send()
->andGetStatus();
$response=HiSms::to(['9665 xxx xxxx','9665 xxx xxxx'])
->message('hello world')
->send()
->andGetCode();
andGetStatus : bool
andGetMessage : string
andGetCode : int
Changelog
Please see CHANGELOG for more information what has changed recently.
Testing
phpunit
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email mohamednasrali00@gmail.be instead of using the issue tracker.
License
The MIT License (MIT). Please see License File for more information.