Looking to hire Laravel developers? Try LaraJobs

semaphoreapi-laravel maintained by marklestermorta

Description
Laravel wrapper for the Semaphore SMS Api
Last update
2022/07/21 05:58 (dev-master)
License
Links
Downloads
21

Comments
comments powered by Disqus

SEMAPHORE SMS API

A Laravel wrapper for SEMAPHORE SMS API

Installation

Require package

  composer require marklestermorta/semaphoreapi-laravel

Publish Configuration file

  php artisan vendor:publish --provider="MarkLesterMorta\Semaphore\SemaphoreApiServiceProvider"

Add ENV variables

  SEMAPHORE_API_KEY=
  SEMAPHORE_SENDER_NAME=

Usage/Examples

Send SMS

  return SemaphoreApi::send('09*********', "Your Message");

After each HTTP POST request, you will receive a JSON response containing the following parameters for each message:

SEMAPHORE API Documentation