-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
31 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# Very short description of the package | ||
# MUTHOFUN SMS GATEWAY | ||
|
||
[![Latest Version on Packagist](https://img.shields.io/packagist/v/imrostom/muthofun.svg?style=flat-square)](https://packagist.org/packages/imrostom/muthofun) | ||
[![Build Status](https://img.shields.io/travis/imrostom/muthofun/master.svg?style=flat-square)](https://travis-ci.org/imrostom/muthofun) | ||
[![Quality Score](https://img.shields.io/scrutinizer/g/imrostom/muthofun.svg?style=flat-square)](https://scrutinizer-ci.com/g/imrostom/muthofun) | ||
[![Total Downloads](https://img.shields.io/packagist/dt/imrostom/muthofun.svg?style=flat-square)](https://packagist.org/packages/imrostom/muthofun) | ||
|
||
This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors. | ||
Muthofun SMS GATEWAY is a LARAVEL client for MUTHOFUN SMS Gateway API | ||
|
||
## Installation | ||
|
||
|
@@ -17,10 +17,38 @@ composer require imrostom/muthofun | |
|
||
## Usage | ||
|
||
You this namespace in your controllers: | ||
``` php | ||
// Usage description here | ||
use Imrostom\Muthofun\Facade\Muthofun; | ||
|
||
``` | ||
|
||
## Configuration | ||
|
||
Publish muthofun config file and configure your mutofun information. | ||
``` php | ||
return [ | ||
'username' => 'imrostom', | ||
'password' => '123456', | ||
'unicode' => 1, // 1 or 0 | ||
'database' => true, | ||
'demo' => true, | ||
'version' => '1.0', | ||
]; | ||
|
||
``` | ||
|
||
To send message single user | ||
``` php | ||
$response = Muthofun::messages(['mobile'=> '+0145465', 'message'=> 'a demo message'])->send(); | ||
|
||
``` | ||
|
||
To send message mutiple user | ||
``` php | ||
$response = Muthofun::messages([['mobile'=> '+0145465', 'message'=> 'a demo message'], ['mobile'=> '+0145465', 'message'=> 'a demo message']])->send(); | ||
|
||
``` | ||
### Testing | ||
|
||
``` bash | ||
|
@@ -47,10 +75,3 @@ If you discover any security related issues, please email [email protected] | |
## License | ||
|
||
The MIT License (MIT). Please see [License File](LICENSE.md) for more information. | ||
|
||
## Laravel Package Boilerplate | ||
|
||
This package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com). | ||
======= | ||
# muthofun | ||
A muthofun package |