marklestermorta/semaphoreapi-laravel

Laravel wrapper for the Semaphore SMS Api

dev-master 2022-07-21 03:58 UTC

This package is auto-updated.

Last update: 2024-05-21 07:56:59 UTC


README

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