2017 © Pedro Peláez
 

library voodoo-sms-sdk

An SDK to interact with the Voodoo SMS API.

image

goldspecdigital/voodoo-sms-sdk

An SDK to interact with the Voodoo SMS API.

  • Saturday, June 30, 2018
  • by goldspecdigital
  • Repository
  • 1 Watchers
  • 0 Stars
  • 19 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 27 % Grown

The README.md

Voodoo SMS PHP SDK

PHP SDK for communicating with the Voodoo SMS API., (*1)

Getting Started

These instructions will get you up and running on your local machine and a development environment., (*2)

Prerequisites

  • PHP: >=7.2

Installing

Simply pull in the package in with composer:, (*3)

$ composer require goldspecdigital/voodoo-sms-sdk

Examples

Send an SMS

<?php

use GoldSpecDigital\VoodooSmsSdk\Client;

$client = new Client('username', 'password', 'CompanyName');

$response = $client->send('This is a test message', '07712345678');

var_dump($response);

/*
{
    "result": 200,
    "resultText": "200 OK",
    "reference_id": ["A3dads..."]
}
*/

Get the Delivery Status for an SMS

<?php

use GoldSpecDigital\VoodooSmsSdk\Client;

$client = new Client('username', 'password', 'CompanyName');

$response = $client->getDeliveryStatus('A3dads...');

var_dump($response);

/*
{
    "result": "200 OK",
    "reference_id": "A3dads...",
    "message": "This is a test message",
    "delivery_status": "Delivered",
    "delivery_datetime": "2017-12-28 00:06:09"
}
*/

Running the tests

To run the test you will need to have Voodoo SMS credentials stored in a .env file placed in the project root. An example file is provided for you with the keys required: .env.example., (*4)

You can run the tests in an environment running PHP >=7.2 with PHP Unit:, (*5)

$ vendor/bin/phpunit

And coding style tests

This project follows PSR1 and PSR2 coding standards as well as enabling strict types on all PHP files., (*6)

Before making any commits, make sure your code passes the linter by running:, (*7)

$ vendor/bin/phpcs

Built With

  • Composer - Dependency management
  • Guzzle - The HTTP client to Communicate with the Voodoo SMS API

Contributing

Feel free to issue a pull request, although any requests that fail PHPUnit or the linter will be automatically rejected., (*8)

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository., (*9)

License

This project is licensed under the MIT License - see the LICENSE.md file for details, (*10)

The Versions

30/06 2018

dev-master

9999999-dev https://github.com/goldspecdigital/voodoo-sms-sdk

An SDK to interact with the Voodoo SMS API.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Matthew Inamdar

sms sdk digital voodoo gsd goldspec

30/06 2018
30/06 2018

dev-develop

dev-develop https://github.com/goldspecdigital/voodoo-sms-sdk

An SDK to interact with the Voodoo SMS API.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Matthew Inamdar

sms sdk digital voodoo gsd goldspec

30/06 2018

dev-feature/payload-object

dev-feature/payload-object https://github.com/goldspecdigital/voodoo-sms-sdk

An SDK to interact with the Voodoo SMS API.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Matthew Inamdar

sms sdk digital voodoo gsd goldspec

30/12 2017
30/12 2017
28/12 2017

v1.0.2

1.0.2.0 https://github.com/goldspecdigital/voodoo-sms-sdk

An SDK to interact with the Voodoo SMS API.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Matthew Inamdar

sms sdk digital voodoo gsd goldspec

28/12 2017

v1.0.1

1.0.1.0 https://github.com/goldspecdigital/voodoo-sms-sdk

An SDK to interact with the Voodoo SMS API.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Matthew Inamdar

sms sdk digital voodoo gsd goldspec

28/12 2017

v1.0.0

1.0.0.0 https://github.com/goldspecdigital/voodoo-sms-sdk

An SDK to interact with the Voodoo SMS API.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Matthew Inamdar

sms sdk digital voodoo gsd goldspec