Package Data | |
---|---|
Maintainer Username: | javierslzrh |
Maintainer Contact: | javierslzrh@gmail.com (Javier Salazar) |
Package Create Date: | 2014-08-25 |
Package Last Update: | 2014-08-26 |
Language: | PHP |
License: | GPL-3.0+ |
Last Refreshed: | 2024-11-19 03:16:14 |
Package Statistics | |
---|---|
Total Downloads: | 40 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 2 |
Total Watchers: | 2 |
Total Forks: | 2 |
Total Open Issues: | 1 |
Laravel 4 PlaySMS API Integration
Begin by installing this package through Composer. Edit your project's composer.json
file to require javierslzr/playsmsws
.
"require": {
"laravel/framework": "4.*",
"javierslzrh/playsmsws": "dev-master"
},
Next, update Composer from the Terminal:
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.
'Javierslzrh\Playsmsws\PlaysmswsServiceProvider',
Then, add a Facade for more convenient usage. In app/config/app.php
add the following line to the aliases
array:
'Playsms' => 'Playsmsws\Playsmsws\Facades\Playsmsws',
Publish config files from the Terminal
php artisan config:publish javierslzrh/playsmsws
Edit config/packages/javierslzrh/playsmsws/config.php
with your appropriate PlaySMS settings
Sending a SMS Message
<?php
Playsms::sendSms('+584260001122', 'Good morning');
?>
Scheduling a SMS Message
<?php
Playsms::scheduleSms('+584260001122', 'Good morning', '2014-07-22 06:00:00');
?>
laravel4-playsmsws is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
laravel4-playsmsws is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with laravel4-playsmsws. If not, see http://www.gnu.org/licenses/.
You may find detail information about GPLv3 here: http://www.gnu.org/licenses/gpl-3.0.html
The GPLv3 full text is included in file LICENSE.md