xnekv03/freelo-api-client
Composer 安装命令:
composer require xnekv03/freelo-api-client
包简介
Freelo api wrapper
README 文档
README
This library makes it easy to send requests towards Freelo API
Installation
The recommended way to install package is through Composer.
# Install Composer curl -sS https://getcomposer.org/installer | php
Next, run the Composer command to install the latest stable version of package:
composer require xnekv03/freelo-api-client
After installing, you need to require Composer's autoloader:
require 'vendor/autoload.php';
You can then later update package using composer:
composer update
Usage
Before you start
Create a Freelo account
Get your API key
Login to your Dashboard, go to your Settings and obtain your API key which will be something like
9lDZU35Lb0wmnq4tWvmmUkugLja4dXwPDcOMP1CBdIa
Initialize API Client
# load autoload file require_once 'vendor/autoload.php'; # Import Freelo library use Freelo\Client; $freeloApiToken = '9lDZU35Lb0wmnq4tWvmmUkugLja4dXwPDcOMP1CBdIa'; $loginEmail = 'john@doe.com'; # Initialize a client $freeloClient = new Client($freeloApiToken,$loginEmail);
Create project
$projectName = "Project Alice"; $currencyIso = "EUR"; // currently EUR, USD or CZK is supported $projectId = $freeloClient->createProject($projectName, $currencyIso); echo $projectId; // 74201 - project ID is returned
Collection of all own projects including active To-Do lists
$projects = $freeloClient->getAllOwnProjectIncludinglToDo(); var_dump($projects); // array with all projects including their names, IDs and task lists
Paginated collection of all invited projects
$projects = $freeloClient->getAllInvitedProjects(); var_dump($projects); // array with all invited projects
Paginated collection of all archived projects
$projects = $freeloClient->getAllArchivededProjects(); var_dump($projects); // array with all archived projects
Paginated collection of all templated projects
$projects = $freeloClient->getAllTemplateProjects(); var_dump($projects); // array with all templated projects
Project workers collection
$projectId = 73335; $projectsWorkers = $freeloClient->allProjectWorkers($projectId); var_dump($projectsWorkers); // array with all workers assigned to given project
Create to-do list
$projectId = 73335; // ID of an existing project $budget = 10205; // 2 decimal places with no decimal separator, ie. 1.05 = '105' $listName = 'Pre-launch test'; $projectDetails = $freeloClient->createToDoList($projectId, $budget, $listName); var_dump($projectDetails); // array with task details
Find all assignable workers for To-Do list
$projectId = 73335; // ID of an existing project $taskId = 179444; // ID of existing task $workers = $freeloClient->assignableWorkersCollection($projectId, $taskId); var_dump($workers); // array with available workers and their IDs
xnekv03/freelo-api-client 适用场景与选型建议
xnekv03/freelo-api-client 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 16 次下载、GitHub Stars 达 3, 最近一次更新时间为 2020 年 02 月 29 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「Tasks」 「project management」 「task management」 「freelo」 「team cooperation」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 xnekv03/freelo-api-client 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 xnekv03/freelo-api-client 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 xnekv03/freelo-api-client 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Tasks for NetCommons Plugin
Tasks addon for Bear Framework
A Silverstripe module to allow you to log into any of your Silverstripe sites from one place.
Task system for APPUI
An introduction to machine learning in Rubix ML using the famous Iris dataset and the K Nearest Neighbors classifier.
Composer plugin, package and tasks manager by group
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 11
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-02-29