Package Data | |
---|---|
Maintainer Username: | livana |
Maintainer Contact: | livanaweb@gmail.com (livana) |
Package Create Date: | 2014-07-29 |
Package Last Update: | 2014-09-23 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-11-19 03:25:22 |
Package Statistics | |
---|---|
Total Downloads: | 21 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 2 |
Total Watchers: | 0 |
Total Forks: | 3 |
Total Open Issues: | 0 |
package for send sms with laravel (published for parssms24.ir) this package only work for iranian mobile operator
For install this package Edit your project's composer.json
file to require livana/sms
"require": {
"livana/sms": "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.
'Livana\Sms\SmsServiceProvider',
Next, add a Facade for more convenient usage. In app/config/app.php
add the following line to the aliases array:
'Sms' => 'Livana\Sms\Facades\Sms',
Publish config files:
php artisan config:publish livana/sms
for change username, password and other configuration change app/config/packages/livana/sms/config.php
for use this package, please register on parssms24.ir
Sms::send('9123456789', 'text message'); // send message for a person
Sms::send(['9123456789', '91234567890'], 'text mesage'); // send message for persons
Sms::getCredit();