2017 © Pedro Peláez
 

library hisms

SMS libaray using hisms

image

shreifelagamy/hisms

SMS libaray using hisms

  • Tuesday, March 13, 2018
  • by shreifelagamy
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 50 % Grown

The README.md

Hisms

Sending sms using Hisms provider for Laravel 5, (*1)

Introduction

Still Working on it, any feedbacks are appreciated., (*2)

Installation

First, you'll need to require the package with Composer:, (*3)

composer require shreifelagamy/hisms:"dev-master"

Then, update config/app.php by adding an entry for the service provider, (*4)

'providers' => [
    // ...
    Shreifelagamy\Hisms\HiSmsServiceProvider::class
];

Then, register class alias by adding an entry in aliases section, (*5)

'aliases' => [
    // ...
  'Hisms' => Shreifelagamy\Hisms\HismsFacade::class
];

Finally create config file named hisms.php in config directory or you can use, (*6)

php artisan vendor:publish --tag=config

Configuration

You need to fill in hisms.php file with the proper credentials, (*7)

return array(
    /*
    |--------------------------------------------------------------------------
    | hisms App Credentials
    |--------------------------------------------------------------------------
    |
    |
    */
    'Username' => 'USERNAME',
    'Password' => 'PASSWORD',
    'SenderName' => 'SENDERNAME',
);

Usage

You can send to specific number or multiple numbers in once using this function, but always remember to include the country code with the number EX: 9665xxxxxx, (*8)

Sending to specific number

\Hisms::sendSMS('message', '96653xxxxxxx');

Sending to multiple numbers

\Hisms::sendSMS('message', ['96653xxxxxxx', '96653xxxxxxx']);

The Versions

13/03 2018

dev-master

9999999-dev

SMS libaray using hisms

  Sources   Download

MIT

The Requires

 

by shreif