hfw/asana
Composer 安装命令:
composer require hfw/asana
包简介
A fluent library for Asana's REST API. Includes a Laravel facade.
README 文档
README
A fluent PHP library for Asana's REST API
Documentation: https://hfw.github.io/asana
composer require hfw/asana:6.x-dev
For Laravel, see /src/Api/Laravel
Introduction
use Helix\Asana\Api; $api = new Api( ACCESS TOKEN );
The Api instance is the central access point for entities, and pools entities to avoid redundant network calls and prevent object duplication.
It's also used as a library-wide factory. Subclassing Api and overriding factory() lets you return whatever you want for any given endpoint.
You don't need to call new outside of instantiating the Api class.
All library objects are injected with the Api instance and use factory() to give you what you want.
Example: You
$me = $api->getMe(); echo $me->getUrl();
Example: Workspaces
// if you're only in one workspace, then it's a safe default $workspace = $api->getWorkspace(); // or you can set a default $api->setWorkspace( GID ); $workspace = $api->getWorkspace(); // or you can get a specific workspace any time $workspace = $api->getWorkspace( GID );
Example: Projects
// create a project $project = $workspace->newProject() ->setName('Test Project') ->setNotes('A test project.') ->setOwner($me) ->create(); echo $project->getUrl(); // get a project $project = $api->getProject( GID );
Example: Tasks
// create a task $task = $project->newTask() ->setAssignee($me) ->setName('Test Task') ->setNotes('A test task.') ->create(); echo $task->getUrl(); // iterate your tasks $taskList = $me->getTaskList(); foreach ($taskList as $task){ // ... }
Class Diagram
hfw/asana 适用场景与选型建议
hfw/asana 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 155 次下载、GitHub Stars 达 4, 最近一次更新时间为 2019 年 06 月 29 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「laravel」 「asana」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 hfw/asana 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 hfw/asana 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 hfw/asana 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A dependency free, lightweight PHP class that acts as wrapper for Asana API. Lets make things fast and easy! :)
The TestMonitor Asana Client.
Asana API client written on top of Guzzle PHP.
Asana API wrapper for Laravel
Alfabank REST API integration
A Laravel package for interacting with the Asana API
统计信息
- 总下载量: 155
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-06-29