forked from pamenary/LaravelSms
-
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
87 additions
and
87 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,87 +1,87 @@ | ||
# LaravelSms | ||
package for send sms with laravel (All gatways in Iran) | ||
|
||
installation | ||
------------ | ||
For install this package Edit your project's ```composer.json``` file to require pamenary/LaravelSms | ||
|
||
```php | ||
"require": { | ||
"pamenary/LaravelSms": "dev-master" | ||
}, | ||
``` | ||
|
||
Now, update Composer: | ||
``` | ||
composer update | ||
``` | ||
|
||
Once composer is finished, you need to add the service provider. Open ```app/config/app.php```, and add a new item to the providers array. | ||
|
||
``` | ||
'Pamenary\LaravelSms\Laravel\SmsServiceProvider::class', | ||
``` | ||
|
||
Next, add a Facade for more convenient usage. In ```app/config/app.php``` add the following line to the aliases array: | ||
|
||
``` | ||
'Sms' => 'Pamenary\LaravelSms\Laravel\Facade\Sms::class', | ||
``` | ||
Publish config files: | ||
``` | ||
php artisan config:publish livana/sms | ||
``` | ||
for change username, password and other configuration change ```app/config/sms.php``` | ||
|
||
Usage | ||
----- | ||
### Send Message | ||
```php | ||
Sms::sendSMS('09136000415', 'text message'); // send message for a person | ||
|
||
Sms::sendSMS(['09136000415', '09361265987'], 'text mesage'); // send message for persons | ||
``` | ||
### Change Gateway | ||
|
||
```php | ||
$sms = new Sms(new \Pamenary\LaravelSms\Gateways\AzinwebGateway()); | ||
|
||
$sms->sendSMS(['09136000415'], 'text message'); | ||
``` | ||
|
||
### Get Credit | ||
```php | ||
Sms::getCredit(); | ||
``` | ||
|
||
### Gateway | ||
https://azinweb.com/__ | ||
http://arad-sms.ir __ | ||
http://ariaideh.com __ | ||
http://www.0098sms.com __ | ||
http://500sms.ir __ | ||
http://adpdigital.com/services __ | ||
http://afe.ir __ | ||
http://www.afilnet.com __ | ||
http://sms.amansoft.ir __ | ||
http://www.arkapayamak.ir __ | ||
http://asanak.ir __ | ||
http://asanak.ir __ | ||
http://barzingostar.ir __ | ||
http://www.bearsms.com __ | ||
http://panelsms.bestit.co __ | ||
http://bulutfon.com __ | ||
http://caffeweb.com __ | ||
http://chapargah.ir __ | ||
http://chaparpanel.ir __ | ||
http://csmsplus.mobilinkworld.com __ | ||
http://sms.dot4all.it __ | ||
http://esms24.ir __ | ||
http://smspanel.faraed.com __ | ||
http://www.farapayamak.com __ | ||
http://farazpayam.com __ | ||
http://fayasms.ir __ | ||
http://firstpayamak.ir __ | ||
http://fortytwo.com __ | ||
http://freepayamak.ir __ | ||
http://sms.hostiran.net __ | ||
# LaravelSms | ||
package for send sms with laravel (All gatways in Iran) | ||
|
||
installation | ||
------------ | ||
For install this package Edit your project's ```composer.json``` file to require pamenary/LaravelSms | ||
|
||
```php | ||
"require": { | ||
"pamenary/LaravelSms": "dev-master" | ||
}, | ||
``` | ||
|
||
Now, update Composer: | ||
``` | ||
composer update | ||
``` | ||
|
||
Once composer is finished, you need to add the service provider. Open ```app/config/app.php```, and add a new item to the providers array. | ||
|
||
``` | ||
'Pamenary\LaravelSms\Laravel\SmsServiceProvider::class', | ||
``` | ||
|
||
Next, add a Facade for more convenient usage. In ```app/config/app.php``` add the following line to the aliases array: | ||
|
||
``` | ||
'Sms' => 'Pamenary\LaravelSms\Laravel\Facade\Sms::class', | ||
``` | ||
Publish config files: | ||
``` | ||
php artisan config:publish livana/sms | ||
``` | ||
for change username, password and other configuration change ```app/config/sms.php``` | ||
|
||
Usage | ||
----- | ||
### Send Message | ||
```php | ||
Sms::sendSMS('09136000415', 'text message'); // send message for a person | ||
|
||
Sms::sendSMS(['09136000415', '09361265987'], 'text mesage'); // send message for persons | ||
``` | ||
### Change Gateway | ||
|
||
```php | ||
$sms = new Sms(new \Pamenary\LaravelSms\Gateways\AzinwebGateway()); | ||
|
||
$sms->sendSMS(['09136000415'], 'text message'); | ||
``` | ||
|
||
### Get Credit | ||
```php | ||
Sms::getCredit(); | ||
``` | ||
|
||
### Gateway | ||
https://azinweb.com/ | ||
http://arad-sms.ir | ||
http://ariaideh.com | ||
http://www.0098sms.com | ||
http://500sms.ir | ||
http://adpdigital.com/services | ||
http://afe.ir | ||
http://www.afilnet.com | ||
http://sms.amansoft.ir | ||
http://www.arkapayamak.ir | ||
http://asanak.ir | ||
http://asanak.ir | ||
http://barzingostar.ir | ||
http://www.bearsms.com | ||
http://panelsms.bestit.co | ||
http://bulutfon.com | ||
http://caffeweb.com | ||
http://chapargah.ir | ||
http://chaparpanel.ir | ||
http://csmsplus.mobilinkworld.com | ||
http://sms.dot4all.it | ||
http://esms24.ir | ||
http://smspanel.faraed.com | ||
http://www.farapayamak.com | ||
http://farazpayam.com | ||
http://fayasms.ir | ||
http://firstpayamak.ir | ||
http://fortytwo.com | ||
http://freepayamak.ir | ||
http://sms.hostiran.net |