ibtdi/hisms

send sms - using hisms.ws : an sms provider

1.0.0 2021-10-19 17:04 UTC

This package is auto-updated.

Last update: 2024-04-19 23:05:16 UTC


README

The ibtdi/hisms package provides a fluent interface to send sms using HISMS in your php application.

HISMS Intro

68747470733a2f2f6869736d732e77732f74656d706c617465732f64656661756c742f696d672f6c6f676f2f626c75652d6269672e706e67

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.