Wrapper for Teli API

v0.1-beta 2021-12-09 17:05 UTC

README

Latest Stable Version Total Downloads License CodeFactor

PHP Library Intended to Interact with Teli's API

Installation

composer require dutchie027/teli

Overview

Why did I create this API versus using the one Teli provides natively? A few reasons:

  • In my opinion guzzle is WAY more powerful than using the cURL library
  • Most of the Teli calls are GET calls
  • Teli's library exposes the API key in the URI 95% of the time. Sure it's https calls, but that's still asking for trouble

Usage

// require the composer library
require_once 'vendor/autoload.php';
require_once 'config.php';

//make the connction to the API for use
$api = new dutchie027\Teli\API(TELI_API_TOKEN, TELI_CALL_API_SID_TOKEN);

// Add custom settings
$api = new dutchie027\Teli\API(TELI_API_TOKEN, TELI_CALL_API_SID_TOKEN, $settings);

Settings

The default settings are fine, however you might want to override the defaults or use your own.NOTE: All settings are optional and you don't need to provide any.

Future

  • The functions are stubbed out for full feature set of Teli's API, but my main focus ATM is SMS/MMS and Account Management

Contributing

If you're having problems, spot a bug, or have a feature suggestion, file an issue. If you want, feel free to fork the package and make a pull request. This is a work in progresss as I get more info and further test the API.