PHP client for Clockify.me API.
You need to install the library with a PSR-18 compliant HTTP client.
Example using Guzzle:
composer require jdecool/clockify-api guzzlehttp/guzzle http-interop/http-factory-guzzleThe 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.
<?phprequire__DIR__.'/vendor/autoload.php'; $builder = newJDecool\Clockify\ClientBuilder(); $client = $builder->createClientV1('your-clockify-api-key'); $workspaces = $client->get('workspaces');require__DIR__.'/vendor/autoload.php'; $builder = newJDecool\Clockify\ClientBuilder(); $client = $builder->createClientV1('your-clockify-api-key'); $apiFactory = newJDecool\Clockify\ApiFactory($client); $workspaceApi = $apiFactory->workspaceApi(); $workspaces = $workspaceApi->workspaces(); // return an array of JDecool\Clockify\Model\WorkspaceDtoAvailable APIs:
This library is licensed under the MIT License.

