mpclarkson/freshdesk-bundle
Composer 安装命令:
composer require mpclarkson/freshdesk-bundle
包简介
Symfony bundle for the Freshdesk API (v2)
README 文档
README
This is a Symfony2-3 bundle to interact with the Freshdesk API v2 via the freshdesk-php-sdk.
Requirements
- Symfony 2.8+
- PHP 5.5+
- A Freshdesk account
Installation
To add this bundle to your Symfony app, use Composer.
Add mpclarkson/freshdesk-bundle to your composer.json file:
{
"require": {
"mpclarkson/freshdesk-bundle": "dev-master"
}
}
Add the bundle to AppKernel.php:
public function registerBundles() { $bundles = array( // ... new Mpclarkson\FreshdeskBundle\FreshdeskBundle(), // ... ); }
Configure the bundle in config.yml:
freshdesk: api_key: your_freshdesk__api_key domain: your_freshdesk_domain
Then run composer update.
Accessing the Freshdesk API
In a controller you can access the Freshdesk client and the API resources as follows:
$api = $this->get('freshdesk'); //Contacts $contacts = $api->contacts->update($contactId, $data); //Agents $me = $api->agents->current(); //Companies $company = $api->companies->create($data); //Groups $deleted = $api->groups->delete($groupId); //Tickets $ticket = $api->tickets->view($filters); //Time Entries $time = $api->timeEntries->all($ticket['id']); //Conversations $ticket = $api->conversations->note($ticketId, $data); //Categories $newCategory = $api->categories->create($data); //Forums $forum = $api->forums->create($categoryId, $data); //Topics $topics = $api->topics->monitor($topicId, $userId); //Comments $comment = $api->comments->create($forumId); //Email Configs $configs = $api->emailConfigs->all(); //Products $product = $api->products->view($productId); //Business Hours $hours = $api->businessHours->all(); //SLA Policy $policies = $api->slaPolicies-all();
Filtering
All GET requests accept an optional array $query parameter to filter
results. For example:
//Page 2 with 50 results per page $page2 = $this->forums->all(['page' => 2, 'per_page' => 50]); //Tickets for a specific customer $tickets = $this->tickets->view(['company_id' => $companyId]);
Please read the Freshdesk documentation for further information on
filtering GET requests.
Contributing
This is a work in progress and PRs are welcome. Please read the contributing guide.
Author
The library was written and maintained by Matthew Clarkson from Hilenium.
References
mpclarkson/freshdesk-bundle 适用场景与选型建议
mpclarkson/freshdesk-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 89.79k 次下载、GitHub Stars 达 5, 最近一次更新时间为 2016 年 04 月 22 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「symfony」 「support」 「help desk」 「Freshdesk」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 mpclarkson/freshdesk-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 mpclarkson/freshdesk-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 mpclarkson/freshdesk-bundle 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Frequently Asked Questions (FAQ) plugin. With categories, on-the-fly search, customer helpfulness tracking and comments.
The bundle for easy using json-rpc api on your project
A wrapper for silverstripe/docsviewer that pulls the documentation into the CMS adding a Site Help option to the help menu.
Define useful links to be added to the dashboard for clients.
Bundle Symfony DaplosBundle
a simple toolkit for social networks
统计信息
- 总下载量: 89.79k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 11
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-04-22