Skip to content

webmechanicx/Streak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Streak PHP bindings

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