jdecool/clubhouse-api

PHP SDK for Clubhouse

0.3.0 2020-09-27 11:37 UTC

This package is auto-updated.

Last update: 2024-11-29 05:59:31 UTC


README

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.