ridvanbaluyos / semaphore by ridvanbaluyos

A Laravel 4.2 Package for the Sempahore SMS API.
424
0
2
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-04-22 15:03:46
Package Statistics
Total Downloads: 424
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 2
Total Forks: 1
Total Open Issues: 0

ridvanbaluyos/semaphore

A Semaphore API package for Laravel 4.2

This package makes use of the Semaphore SMS API.

Table of contents

Installation

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'

Configuration

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

Usage

Sending SMS to users

Semaphore::send('Welcome to Semaphore!', '639981234567');

Account Status

Semaphore::account();

Message Logs

Semaphore::messages(); // fetches the first 100 logs
Semaphore::messages(2); // fetches the next 100 logs or page 2