Giter Site home page Giter Site logo

laravel-esendex's Introduction

Laravel-Esendex

Laravel 5 wrapper for Esendex SMS

Installation

Install via Composer:

composer require davidcb/laravel-esendex

If you're using Laravel >= 5.5, you can skip this as this package will be auto-discovered. Add the service provider to config/app.php

Davidcb\Esendex\EsendexServiceProvider::class,

You can register the facade in the aliases array in the config/app.php file

'Esendex' => Davidcb\Esendex\Facades\Esendex::class,

Publish the config file

$ php artisan vendor:publish --provider="Davidcb\Esendex\EsendexServiceProvider"

Set your API key and Client ID on your .env file

ESENDEX_ACCOUNT=EX000000
[email protected]
ESENDEX_PASSWORD=secret

Usage

You can find all the methods in the original esendex/esendex-php-sdk package.

Examples:

// Send an SMS
$result = LaravelEsendex::send('Sender', '555000000', 'This is the text of the SMS');
// Retrieve inbox messages
$messages = LaravelEsendex::latest();
// Get a message's status
$status = LaravelEsendex::messageStatus('123456');
// Get a message's body
$body = LaravelEsendex::getMessageBodyById('123456');

laravel-esendex's People

Contributors

aerrity avatar davidcb avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.