2017 © Pedro Peláez
 

library php

Official PHP library for Textko.com

image

textko/php

Official PHP library for Textko.com

  • Sunday, October 16, 2016
  • by textko
  • Repository
  • 2 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Textko PHP SDK

This is the official PHP library for Textko.com API., (*1)

Installation

You can install our library via composer., (*2)

composer require textko/php

For more info, see: Packagist, (*3)

Get Your API Access Token

To start using this library, you need an API Access Token first., (*4)

Register to Get Your Access Token, (*5)

Quick Usage

To send a text message:, (*6)

Example:, (*7)

<?php require_once 'vendor/autoload.php';

$textko = new Textko\Sms('your-access-token-here');

$sms = $textko->send('09171234567', 'My awesome text message');

$sms->smsId(); // Get sms id.
$sms->toNo(); // Get recipient to no.
$sms->text(); // Get sms text.
$sms->status(); // Get sms current status.

Get List of Sms

To get your list of sms, use the getList() function., (*8)

Example:, (*9)

<?php require_once 'vendor/autoload.php';

$textko = new Textko\Sms('your-access-token-here');

$list = $textko->getList();

$list->data(); // Get list of sms.

Get a Message

To get a specific sms, use the get($smsId) function. The sms id is required., (*10)

Example:, (*11)

<?php require_once 'vendor/autoload.php';

$textko = new Textko\Sms('your-access-token-here');

$smsId = 'ABC';
$sms = $textko->get($smsId);

$sms->smsId(); // Get sms id.
$sms->toNo(); // Get recipient to no.
$sms->text(); // Get sms text.
$sms->status(); // Get sms current status.

Response & Errors

Usually all API responses are in the form of a SmsResponseContract. And if something is wrong, it will throw SmsException., (*12)

REST API Documentation

To learn more about our REST API documentation., (*13)

See: API Documentation, (*14)

Need help?

Feel free to contact us. We are happy to assist., (*15)

Email: hello@textko.com, (*16)

Facebook: /textko, (*17)

Twitter: @textko, (*18)

Chat: See our website, (*19)

The Versions

16/10 2016

dev-master

9999999-dev

Official PHP library for Textko.com

  Sources   Download

The Requires

 

by Avatar textko

16/10 2016

v2.0.0

2.0.0.0

Official PHP library for Textko.com

  Sources   Download

The Requires

 

by Avatar textko