A simple PHP client for Clubhouse.io REST API.
The library is decoupled from any HTTP message client with HTTPlug. That's why you need to install a client implementation http://httplug.io/
in this example.
Install using composer:
composer require jdecool/clubhouse-api guzzlehttp/guzzle http-interop/http-factory-guzzle
<?php
require __DIR__.'/vendor/autoload.php';
$builder = new JDecool\Clubhouse\ClientBuilder();
$client = $builder->createClientV2('your-clubhouse-token'); // create client for Clubhouse API v2 (v1 is also available)
$story = $client->get('stories/144');
This library is licensed under the MIT License.