Package Data | |
---|---|
Maintainer Username: | ridvanbaluyos |
Maintainer Contact: | ridvan@baluyos.net (ridvanbaluyos) |
Package Create Date: | 2015-01-18 |
Package Last Update: | 2016-11-04 |
Home Page: | |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-19 03:07:30 |
Package Statistics | |
---|---|
Total Downloads: | 426 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 0 |
Total Watchers: | 2 |
Total Forks: | 1 |
Total Open Issues: | 0 |
A Semaphore API package for Laravel 4.2
This package makes use of the Semaphore SMS API.
Open your composer.json
file and add the following to the require
key:
"ridvanbaluyos/semaphore": "v0.1"
After adding the key, run composer update from the command line to install the package
composer update
Add the service provider to the providers
array in your app/config/app.php
file.
'Ridvanbaluyos\Semaphore\SemaphoreServiceProvider'
Before you can start using the package we need to set some configurations.
To do so you must first publish the config file, you can do this with the following artisan
command.
php artisan config:publish ridvanbaluyos/semaphore
Semaphore::send('Welcome to Semaphore!', '639981234567');
Semaphore::account();
Semaphore::messages(); // fetches the first 100 logs
Semaphore::messages(2); // fetches the next 100 logs or page 2