squarebit/dovetail
Composer 安装命令:
composer require squarebit/dovetail
包简介
A Laravel 5 wrapper for the Teamwork API
README 文档
README
Access your Teamwork.com data in an easy, fluent, API for Laravel 5.
Look at all the fun you can have!
Still not sure? Check out the API cheat sheet for a look at how you'll interact with the API.
Quickstart Guide
Install
composer require squarebit/dovetail
If you aren't on Laraqve 5.5+, you must manually add the service provider to your app/config.php file:
/** * Custom Service Providers */ SquareBit\Dovetail\ServiceProvider::class,
Configure API Settings
php artisan vendor:publish --provider="SquareBit\Dovetail\ServiceProvider"
You can now set your default API key and Teamwork.com domain in config/dovetail.php.
Need a key? See the Teamwork.com docs: Getting your API Key
Usage
Let's get your latest account activity, shall we?
<?php $dovetail = new \SquareBit\Dovetail\Dovetail; $allActivity = $dovetail->activity()->all();
Want to change who you are authenticated as? That's easy too. You can either set the config programmatically with methods, or pass in an ApiClient object:
<?php // Set all at once! $dovetail = new \SquareBit\Dovetail\Dovetail( new \SquareBit\Dovetail\Api\Client('my-api-key', 'https://myDomain.teamwork.com') ); $allActivity = $dovetail->activity()->all(); // Or with a method... $dovetail = new \SquareBit\Dovetail\Dovetail; $dovetail->apiClient->setApiKey('my-new-key'); $dovetail->apiClient->setApiUrl('https://myDomain.teamwork.com'); $allActivity = $dovetail->activity()->all();
Full API Cheat Sheet
Thirsty for more? Check out the full API cheat sheet:
https://squarebit.io/zschuessler/dovetail/documentation/getting-started/api-request-cheat-sheet
Want to see the official Quickstart Guide? It's here:
https://squarebit.io/zschuessler/dovetail/documentation/getting-started/quickstart-guide
Roadmap
The following endpoints will be added before 02/28/2018:
- boards
- categories
- calendar events
- files
- time tracking
For business users, full webhook support will be available 03/01/2018. You'll get full ability to consume and respond to Teamwork.com events as they happen - woohoo! You can get an unlimited usage license on the SquareBit.io Dovetail page.
Unit Tests
This package has over 75+ unit tests and growing. If interested please see the business license on SquareBit.io.
License
If you are a business or intending on commercial use, please pay for a license: Dovetail on SquareBit.io.
If you intend on using this repository without commercial use, the code is licensed under Creative Commons Attribution NonCommercial (CC-BY-NC).
squarebit/dovetail 适用场景与选型建议
squarebit/dovetail 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 15 次下载、GitHub Stars 达 5, 最近一次更新时间为 2018 年 02 月 23 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 squarebit/dovetail 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 squarebit/dovetail 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 15
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: CC-BY-NC-4.0
- 更新时间: 2018-02-23