Skip to content

jdecool/clubhouse-api

Repository files navigation

Clubhouse API client

Build Status Scrutinizer Code Quality Latest Stable Version

A simple PHP client for Clubhouse.io REST API.

Install it

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

Getting started

<?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');

LICENSE

This library is licensed under the MIT License.