2017 © Pedro PelĂĄez
 

library instasent-php-lib

A PHP wrapper library for Instasent's API

image

instasent/instasent-php-lib

A PHP wrapper library for Instasent's API

  • Monday, May 21, 2018
  • by markitosgv
  • Repository
  • 2 Watchers
  • 3 Stars
  • 446 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 5 Versions
  • 26 % Grown

The README.md

Welcome to Instasent PHP SDK. This repository contains PHP SDK for Instasent's REST API., (*1)

Notice!

Verify product is currently deprecated and will be removed in the next release. The same functionality can be easily implemented by sending an SMS. If you need help migrating please contact us, (*2)

Installation

The easiest way to install the SDK is either via composer:, (*3)

composer require instasent/instasent-php-lib

or manually by downloading the source:, (*4)

Click here to download the source (.zip), (*5)

Once you download the library, move the instasent-php-lib folder to your project directory and then include the library file:, (*6)

require_once(__DIR__ . '/path/to/lib/Abstracts/InstasentClient.php');
require_once(__DIR__ . '/path/to/lib/SmsClient.php');

Usage

Check the examples directory to see working examples of this SDK usage, (*7)

Sending an SMS

$instasentClient = new Instasent\SmsClient('my-token');
$response = $instasentClient->sendSms('Company', '+34666666666', 'test message');

echo $response['response_code'];
echo $response['response_body'];

If you want to send an Unicode SMS (i.e with 😀 emoji) you only need to replace sendSms call to sendUnicodeSms, (*8)

$response = $instasentClient->sendUnicodeSms('Company', '+34666666666', 'Unicode test: ña éåíóĂș 😀');

Available actions

SMS
SmsClient::sendSms(sender, to, text)
SmsClient::sendUnicodeSms(sender, to, text)
SmsClient::getSms(page, per_page)
SmsClient::getSmsById(message_id)

LOOKUP
LookupClient::doLookup(to)
LookupClient::getLookups(page, per_page)
LookupClient::getLookupById(id)

ACCOUNT
instasent::getAccountBalance()

Full documentation

Full documentation of the API can be found at http://docs.instasent.com/, (*9)

Getting help

If you need help installing or using the SDK, please contact Instasent Support at support@instasent.com, (*10)

If you've instead found a bug in the library or have a feature request, go ahead and open an issue or pull request!, (*11)

The Versions

21/05 2018

dev-master

9999999-dev http://github.com/instasent/instasent-php-lib

A PHP wrapper library for Instasent's API

  Sources   Download

MIT

The Requires

  • php >=5.2.1

 

api sms lookup instasent

24/05 2017

v0.1.3

0.1.3.0 http://github.com/instasent/instasent-php-lib

A PHP wrapper library for Instasent's API

  Sources   Download

MIT

The Requires

  • php >=5.2.1

 

api sms lookup instasent

07/12 2016

v0.1.2

0.1.2.0 http://github.com/instasent/instasent-php-lib

A PHP wrapper library for Instasent's API

  Sources   Download

MIT

The Requires

  • php >=5.2.1

 

api sms lookup instasent

08/08 2016

v0.1.1

0.1.1.0 http://github.com/instasent/instasent-php-lib

A PHP wrapper library for Instasent's API

  Sources   Download

MIT

The Requires

  • php >=5.2.1

 

api sms lookup instasent

10/05 2016

v0.1.0

0.1.0.0 http://github.com/instasent/instasent-php-lib

A PHP wrapper library for Instasent's API

  Sources   Download

MIT

The Requires

  • php >=5.2.1

 

by Senén Hermida

api sms lookup instasent