Skip to content

jdecool/clubhouse-api

Repository files navigation

Clubhouse API client

Build Status Build Status Scrutinizer Code Quality Latest Stable Version

A simple PHP client for Clubhouse.io REST API.

Install it

Install using composer:

composer require jdecool/clubhouse-api "php-http/guzzle6-adapter:^1.0"

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.

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.