2017 © Pedro Peláez
 

library clickatell

Standalone PHP library to integrate with the Clickatell SMS gateway

image

arcturial/clickatell

Standalone PHP library to integrate with the Clickatell SMS gateway

  • Monday, October 9, 2017
  • by arcturial
  • Repository
  • 6 Watchers
  • 45 Stars
  • 86,262 Installations
  • PHP
  • 8 Dependents
  • 0 Suggesters
  • 30 Forks
  • 2 Open issues
  • 21 Versions
  • 8 % Grown

The README.md

PHP library for the Clickatell Platform

Master: Build Status, (*1)

This library allows integration with the new Clickatell website., (*2)

Please Note: Customers with accounts registered on the old central.clickatell.com should use the tagged released or dev branches for version 2 of the repository, version 3 and up is for the new platform and older accounts will not work with this., (*3)

Usage

The new APIs only support sendMessage call and webhooks for outgoing and inbound messages via a RESTful interface., (*4)

``` php use Clickatell\Rest; use Clickatell\ClickatellException;, (*5)

$clickatell = new \Clickatell\Rest('token');, (*6)

// Full list of support parameters can be found at https://www.clickatell.com/developers/api-documentation/rest-api-request-parameters/ try { $result = $clickatell->sendMessage(['to' => ['27111111111'], 'content' => 'Message Content']);, (*7)

foreach ($result['messages'] as $message) {
    var_dump($message);

    /*
    [
        'apiMsgId'  => null|string,
        'accepted'  => boolean,
        'to'        => string,
        'error'     => null|string
    ]
    */
}

} catch (ClickatellException $e) { // Any API call error will be thrown and should be handled appropriately. // The API does not return error codes, so it's best to rely on error descriptions. var_dump($e->getMessage()); }, (*8)


### Status/Reply Callback After configuring your webhooks/callbacks inside the developer portal, you can use the static callback methods to listen for web requests from Clickatell. These callbacks will extract the supported fields from the request body. ``` php use Clickatell\Rest; use Clickatell\ClickatellException; // Outgoing traffic callbacks (MT callbacks) Rest::parseStatusCallback(function ($result) { var_dump($result); // This will execute if the request to the web page contains all the values // specified by Clickatell. Requests that omit these values will be ignored. }); // Incoming traffic callbacks (MO/Two Way callbacks) Rest::parseReplyCallback(function ($result) { var_dump($result); // This will execute if the request to the web page contains all the values // specified by Clickatell. Requests that omit these values will be ignored. });

The Versions

09/10 2017

dev-master

9999999-dev https://arcturial.github.com

Standalone PHP library to integrate with the Clickatell SMS gateway

  Sources   Download

MIT GNU GENERAL PUBLIC LICENSE

The Requires

  • php >=5.5

 

The Development Requires

09/10 2017

3.x-dev

3.9999999.9999999.9999999-dev https://arcturial.github.com

Standalone PHP library to integrate with the Clickatell SMS gateway

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

10/03 2017

3.0.0

3.0.0.0 https://arcturial.github.com

Standalone PHP library to integrate with the Clickatell SMS gateway

  Sources   Download

GNU GENERAL PUBLIC LICENSE

The Requires

  • php >=5.3.3

 

The Development Requires

19/03 2016

2.x-dev

2.9999999.9999999.9999999-dev http://www.cainsvault.com

Standalone PHP library to integrate with the Clickatell SMS gateway

  Sources   Download

GNU GENERAL PUBLIC LICENSE

The Requires

  • php >=5.3.3

 

The Development Requires

19/03 2016

2.1.6

2.1.6.0 http://www.cainsvault.com

Standalone PHP library to integrate with the Clickatell SMS gateway

  Sources   Download

GNU GENERAL PUBLIC LICENSE

The Requires

  • php >=5.3.3

 

The Development Requires

19/03 2016

dev-issue-23

dev-issue-23 http://www.cainsvault.com

Standalone PHP library to integrate with the Clickatell SMS gateway

  Sources   Download

GNU GENERAL PUBLIC LICENSE

The Requires

  • php >=5.3.3

 

The Development Requires

14/02 2016

2.1.5

2.1.5.0 http://www.cainsvault.com

Standalone PHP library to integrate with the Clickatell SMS gateway

  Sources   Download

GNU GENERAL PUBLIC LICENSE

The Requires

  • php >=5.3.3

 

The Development Requires

10/10 2015

2.1.4

2.1.4.0 http://www.cainsvault.com

Standalone PHP library to integrate with the Clickatell SMS gateway

  Sources   Download

GNU GENERAL PUBLIC LICENSE

The Requires

  • php >=5.3.3

 

The Development Requires

28/09 2015

2.1.3

2.1.3.0 http://www.cainsvault.com

Standalone PHP library to integrate with the Clickatell SMS gateway

  Sources   Download

GNU GENERAL PUBLIC LICENSE

The Requires

  • php >=5.3.3

 

The Development Requires

20/08 2015

2.1.2

2.1.2.0 http://www.cainsvault.com

Standalone PHP library to integrate with the Clickatell SMS gateway

  Sources   Download

GNU GENERAL PUBLIC LICENSE

The Requires

  • php >=5.3.3

 

The Development Requires

11/07 2015

2.1.1

2.1.1.0 http://www.cainsvault.com

Standalone PHP library to integrate with the Clickatell SMS gateway

  Sources   Download

GNU GENERAL PUBLIC LICENSE

The Requires

  • php >=5.3.3

 

The Development Requires

30/03 2015

2.1.0

2.1.0.0 http://www.cainsvault.com

Standalone PHP library to integrate with the Clickatell SMS gateway

  Sources   Download

GNU GENERAL PUBLIC LICENSE

The Requires

  • php >=5.3.3

 

The Development Requires

30/03 2015

dev-feature-bundle

dev-feature-bundle http://www.cainsvault.com

Standalone PHP library to integrate with the Clickatell SMS gateway

  Sources   Download

GNU GENERAL PUBLIC LICENSE

The Requires

  • php >=5.3.3

 

The Development Requires

30/03 2015

dev-feature-otp

dev-feature-otp http://www.cainsvault.com

Standalone PHP library to integrate with the Clickatell SMS gateway

  Sources   Download

GNU GENERAL PUBLIC LICENSE

The Requires

  • php >=5.3.3

 

The Development Requires

29/12 2014

2.0.0

2.0.0.0 http://www.cainsvault.com

Standalone PHP library to integrate with the Clickatell SMS gateway

  Sources   Download

GNU GENERAL PUBLIC LICENSE

The Requires

  • php >=5.3.3

 

The Development Requires

29/12 2014

dev-refactor

dev-refactor http://www.cainsvault.com

Standalone PHP library to integrate with the Clickatell SMS gateway

  Sources   Download

GNU GENERAL PUBLIC LICENSE

The Requires

  • php >=5.3.3

 

The Development Requires

16/12 2014

1.0.4

1.0.4.0 http://www.cainsvault.com

Standalone PHP library to integrate with the Clickatell SMS gateway

  Sources   Download

GNU GENERAL PUBLIC LICENSE

The Requires

  • php >=5.3.3

 

The Development Requires

20/11 2014

1.0.3

1.0.3.0 http://www.cainsvault.com

Standalone PHP library to integrate with the Clickatell SMS gateway

  Sources   Download

GNU GENERAL PUBLIC LICENSE

The Requires

  • php >=5.3.3

 

The Development Requires

04/10 2014

1.0.2

1.0.2.0 http://www.cainsvault.com

Standalone PHP library to integrate with the Clickatell SMS gateway

  Sources   Download

GNU GENERAL PUBLIC LICENSE

The Requires

  • php >=5.3.3

 

The Development Requires

01/01 2014

1.0.1

1.0.1.0 http://www.cainsvault.com

Standalone PHP library to integrate with the Clickatell SMS gateway

  Sources   Download

GNU GENERAL PUBLIC LICENSE

The Requires

  • php >=5.3.3

 

16/06 2013

1.0.0

1.0.0.0

Clickatell SMS Gateway PHP Library

  Sources   Download

The Requires

  • php >=5.3.3