bandwidth / catapult
Bandwidth's Catapult SDK for PHP
Installs: 122 435
Dependents: 4
Suggesters: 3
Security: 0
Stars: 14
Watchers: 21
Forks: 22
Open Issues: 9
Requires
- php: >=5.3.0
Requires (Dev)
- php: >=5.3.0
- phpunit/phpunit: 3.7.*
This package is auto-updated.
Last update: 2021-03-02 20:57:59 UTC
README
Deprecation Notice
This projected is deprecated. Please go to https://github.com/Bandwidth/php-sdk
SDK for Bandwidth's App Platform
Documentation
Installing:
to install, with composer
composer require bandwidth/catapult
OR after cloning:
composer update
Running from source
You can also use Bandwidth without composer, you only need to include "Catapult.php" from /source/
Example:
require "source/Catapult.php"
API keys
REMEMBER to configure your API keys. You can do this in 'one' of two ways:
-
Update credentials.json with your keys. If you use this method, use this constructor:
$cred = new Catapult\Credentials;
Also, be sure to protect that file from external access
-
Specify your keys to the Catapult client. If you use this method, use this constructor
$cred = new Catapult\Credentials('your Bandwidth App Platform user-id here', 'your bandwidth app platform token here', 'your bandwidth api secret here');
unit tests.
In ./tests there are a list of tests to run any we need phpunit:
composer require phpunit
and to run a rest:
php phpunit.phar --bootstrap ../source/Catapult.php {test_name}
where test name can be any of the listed tests.
Requirements
- needed:
- php >= 5.3.0
- libCurl
optional:
- openSSL