Streak PHP bindings
, (*1)
Streak
You can sign up for a Streak account at https://streak.com, (*2)
Requirements
PHP 5.3.3 and later., (*3)
Composer
You can install the bindings via Composer. Run the following command:, (*4)
composer require webmechanicx/streak
To use the bindings, use Composer's autoload:, (*5)
require_once('vendor/autoload.php');
Manual Installation
If you do not wish to use Composer, you can download the latest release. Then, to use the bindings, include the init.php file., (*6)
require_once('/path/to/streak/init.php');
Dependencies
The bindings require the following extension in order to work properly:, (*7)
-
curl, although you can use your own non-cURL client if you prefer
json
-
mbstring (Multibyte String)
Getting Started
Simple usage looks like:, (*8)
\Streak\Streak::setApiKey('<-- Your Streak API Key -->');
$pipeline = new \Streak\StreakPipeline;
$params = array(
'name' => 'Foo',
'description' => 'Bar'
);
$data = $pipeline->createPipeline($params);
print_r( json_decode($data) );
More Examples
you can download Examples available with this package and getting started., (*9)
Documentation
Please see docs for up-to-date documentation., (*10)