Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shreifelagamy/hisms
Sending sms using hisms provider
https://github.com/shreifelagamy/hisms
hisms laravel laravel5 sms
Last synced: 3 days ago
JSON representation
Sending sms using hisms provider
- Host: GitHub
- URL: https://github.com/shreifelagamy/hisms
- Owner: shreifelagamy
- Created: 2018-03-08T12:32:57.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-03-13T08:00:02.000Z (over 6 years ago)
- Last Synced: 2024-10-11T09:40:51.752Z (26 days ago)
- Topics: hisms, laravel, laravel5, sms
- Language: PHP
- Size: 3.91 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Hisms
Sending sms using [Hisms](https://www.hisms.ws/) provider for Laravel 5## Introduction
Still Working on it, any feedbacks are appreciated.## Installation
First, you'll need to require the package with Composer:
```sh
composer require shreifelagamy/hisms:"dev-master"
```Then, update config/app.php by adding an entry for the service provider
```sh
'providers' => [
// ...
Shreifelagamy\Hisms\HiSmsServiceProvider::class
];
```Then, register class alias by adding an entry in aliases section
```sh
'aliases' => [
// ...
'Hisms' => Shreifelagamy\Hisms\HismsFacade::class
];
```Finally create config file named `hisms.php` in `config` directory or you can use
```sh
php artisan vendor:publish --tag=config
```## Configuration
You need to fill in `hisms.php` file with the proper credentials
```sh
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### Sending to specific number
```sh
\Hisms::sendSMS('message', '96653xxxxxxx');
```
### Sending to multiple numbers
```sh
\Hisms::sendSMS('message', ['96653xxxxxxx', '96653xxxxxxx']);
```