ridvanbaluyos / semaphore by ridvanbaluyos

A Laravel 4.2 Package for the Sempahore SMS API.
425
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-11-11 15:07:11
Package Statistics
Total Downloads: 425
Monthly Downloads: 1
Daily Downloads: 1
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