jdecool / clubhouse-api
PHP SDK for Clubhouse
0.3.0
2020-09-27 11:37 UTC
Requires
- php: ^7.3
- ext-json: *
- php-http/client-common: ^2.3
- php-http/discovery: ^1.12
- php-http/httplug: ^2.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.15
- guzzlehttp/guzzle: ^7.0
- http-interop/http-factory-guzzle: ^1.0
- nunomaduro/collision: ^5.0
- pestphp/pest: ^0.3.0
- phpstan/phpstan: ^0.12
- phpunit/phpunit: ^9.0
This package is auto-updated.
Last update: 2024-11-29 05:59:31 UTC
README
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.