承接 jdecool/clockify-api 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jdecool/clockify-api

最新稳定版本:1.0.0-alpha1

Composer 安装命令:

composer require jdecool/clockify-api

包简介

PHP Client for Clockify.me API

README 文档

README

Build Status Scrutinizer Code Quality Latest Stable Version

PHP client for Clockify.me API.

Install it

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-guzzle

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

Use the HTTP client

<?php

require __DIR__.'/vendor/autoload.php';

$builder = new JDecool\Clockify\ClientBuilder();
$client = $builder->createClientV1('your-clockify-api-key');

$workspaces = $client->get('workspaces');

Use the decicated API client

require __DIR__.'/vendor/autoload.php';

$builder = new JDecool\Clockify\ClientBuilder();
$client = $builder->createClientV1('your-clockify-api-key');

$apiFactory = new JDecool\Clockify\ApiFactory($client);
$workspaceApi = $apiFactory->workspaceApi();

$workspaces = $workspaceApi->workspaces(); // return an array of JDecool\Clockify\Model\WorkspaceDto

Available APIs:

LICENSE

This library is licensed under the MIT License.

统计信息

  • 总下载量: 3.89k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 16
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 16
  • Watchers: 4
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-09-20