Skip to content

mohamed-nasr-ali/package-hisms

Repository files navigation

HISMS

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

saudi arabia phones

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.

About

package to send sms - using hisms.ws : an sms provider

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages