arjanderuyter/freshdesk-php-sdk
Composer 安装命令:
composer require arjanderuyter/freshdesk-php-sdk
包简介
PHP extended SDK for the Freshdesk API (v2)
README 文档
README
This is a PHP 7.2+ SDK for the Freshdesk API v2.
If you have questions, please contact me or open an issue on GitHub.
Quick Start
require __DIR__ . '/vendor/autoload.php'; use \Freshdesk\Api; $api = new Api("your_freshdesk_api_key", "your_freshdesk_domain"); $all = $api->tickets->all(); $some = $api->tickets->all(['page' => 2]); $new = $api->tickets->create($data); $updated = $api->tickets->update($data); $api->tickets->delete($id); $existing = $api->tickets->view($id); //Responses are simple arrays, e.g.: $id = $existing['id']; $first = $all[0];
Installation
To integrate this library into your application, use Composer.
Then just run:
composer require arjanderuyter/freshdesk-php-sdk
API Overview
Full documentation is available here
Getting started
Creating a new API instance is very easy. All you need is your Freshdesk API key and your Freshdesk domain.
require __DIR__ . '/vendor/autoload.php'; use \Freshdesk\Api; $api = new Api("your_freshdesk_api_key", "your_freshdesk_domain");
Resources
The available methods for each resource are available via a public property on the api, for example:
//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(); //Solutions $categories = $api->solutioncategories->all(); $categories = $api->solutioncategories->create($data); $categories = $api->solutioncategories->update($id, $data); $categories = $api->solutioncategories->view($id); $folders = $api->solutionfolders->all(); $folders = $api->solutionfolders->create($data); $folders = $api->solutionfolders->update($id, $data); $folders = $api->solutionfolders->view($id); $articles = $api->solutionarticles->all(); $articles = $api->solutionarticles->create($data); $articles = $api->solutionarticles->update($id, $data); $articles = $api->solutionarticles->view($id);
Responses
All responses are arrays of data. Please refer to Freshdesk's documentation for further information.
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
Nearly all api calls are available except for the Surveys,
which Freshdesk has not yet implemented...
Author
The library was written Matthew Clarkson from Hilenium then forked and adopted for Laravel 8.x by Michał Borek for Wocozon. Solutions was done by Arjan de Ruyter because he needed it for (https://www.buroscanbrit.nl)
Reference
arjanderuyter/freshdesk-php-sdk 适用场景与选型建议
arjanderuyter/freshdesk-php-sdk 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.1k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 01 月 29 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「api」 「support」 「help desk」 「Freshdesk」 「customer service」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 arjanderuyter/freshdesk-php-sdk 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 arjanderuyter/freshdesk-php-sdk 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 arjanderuyter/freshdesk-php-sdk 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Frequently Asked Questions (FAQ) plugin. With categories, on-the-fly search, customer helpfulness tracking and comments.
A wrapper for silverstripe/docsviewer that pulls the documentation into the CMS adding a Site Help option to the help menu.
A PSR-7 compatible library for making CRUD API endpoints
Define useful links to be added to the dashboard for clients.
a simple toolkit for social networks
ARCANEDEV Support Helpers
统计信息
- 总下载量: 1.1k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 10
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-01-29