Streak PHP SDK

v1.0.0 2017-12-24 21:45 UTC

This package is not auto-updated.

Last update: 2025-05-11 06:40:08 UTC


README

Latest Stable Version Total Downloads License

Streak

You can sign up for a Streak account at https://streak.com

Requirements

PHP 5.3.3 and later.

Composer

You can install the bindings via Composer. Run the following command:

composer require webmechanicx/streak

To use the bindings, use Composer's autoload:

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.

require_once('/path/to/streak/init.php');

Dependencies

The bindings require the following extension in order to work properly:

  • curl, although you can use your own non-cURL client if you prefer
  • json
  • mbstring (Multibyte String)

Getting Started

Simple usage looks like:

\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.

Documentation

Please see docs for up-to-date documentation.

This Streak Client Supports both endpoints are v1 and v2