2017 © Pedro Peláez
 

library ebulk-php

ebulk-php is a library for using the Ebulk SMS API from PHP. This library is first and designed to make Ebulk API consumption seamless.

image

aladeusi/ebulk-php

ebulk-php is a library for using the Ebulk SMS API from PHP. This library is first and designed to make Ebulk API consumption seamless.

  • Wednesday, March 21, 2018
  • by Aladeusi
  • Repository
  • 1 Watchers
  • 1 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

ebulk-php

Build Status license, (*1)

Packagist, (*2)

ebulk-php is a library for using the Ebulk SMS API from PHP., (*3)

This library is first and designed to make Ebulk API consumption seamless., (*4)

Installation

To install using composer, (*5)

composer require aladeusi/ebulk-php=dev-master

Navigate to your root directory and update composer to install ebulk-php dependencies, (*6)

composer update

Usage

Import Classes

Require composer autoload file and import Initialize, SendMessage and Response classes, (*7)

    require ('vendor/autoload.php');

    use EbulkSMS\Authentication\Initialize;
    use EbulkSMS\Response\Response;
    use EbulkSMS\Request\SendSMS;

Initialize the Libary

First you initialize the library with your API key. This key can be retrived from your evulk account dashboard, (*8)

$Initialize=new Initialize([
    'Key'=>'YourAPIKey',
    'Username'=>'YourEbulkUserName'
    ]);

Send SMS

You can either send sms in JSON format or XML format., (*9)

In JSON Format

    SendSMS::sendWithJSON(['SenderName'=>'YourCustomSenderName',
            'Recipients'=>'RecipientsPhoneNumbersSeparatedWithComma',
            'Message'=>'YourCustomMessage'
        ]);

In XML Format

    SendSMS::sendWithXML(['SenderName'=>'YourCustomSenderName',
            'Recipients'=>'RecipientsPhoneNumbersSeparatedWithComma',
            'Message'=>'YourCustomMessage'
        ]);

Get Response Message and Code

Response Code

    Response::$getResposeCode

Response Success Message

    Response::$getSuccessMessage

Response Error Message

    Response::$getErrorMessage

The Versions

21/03 2018

dev-master

9999999-dev https://github.com/Aladeusi/ebulk-php

ebulk-php is a library for using the Ebulk SMS API from PHP. This library is first and designed to make Ebulk API consumption seamless.

  Sources   Download

MIT

The Requires

 

The Development Requires

sms api ebulk ebulk sms ebulk php library ebulk library ebulk api libary ebulk php api library