deepser/api-php
Composer 安装命令:
composer require deepser/api-php
包简介
Deepser API PHP library
README 文档
README
Let's consume the Deepser API (issues)
Deepser is a help desk software and you can find more information in Deepser API Docs
Installation
This library can be found on Packagist. The recommended way to install this is through composer. We support PHP >=7.0. This library is no longer tested on HHVM.
Run these commands to install composer, the library and its dependencies:
$ curl -sS https://getcomposer.org/installer | php
$ php composer.phar require deepser/api-php^1.0.3
You then need to install one of the following:
$ php composer.phar update
Or edit composer.json and add:
{
"require": {
"deepser/api-php": "^1.0.3"
}
}
Example
Login with Basic Authentication
<?php require 'vendor/autoload.php'; $host = 'https://your.deepser.net'; $username = 'username'; $password = 'password'; // create a deep desk object \Deepser\Deepser::init($host, $username, $password); // ...
Login with Token Based Authentication
<?php require 'vendor/autoload.php'; $host = 'https://your.deepser.net'; $username = 'username'; $token = 'mytokenhere'; // create a deep desk object \Deepser\Deepser::init($host, $token); // ...
Operation (Ticket)
// ... // load an existing operation by id $operation = new \Deepser\Entity\Service\Operation(); $operation->load(1000); //... // create new operation object $operation = new \Deepser\Entity\Service\Operation(); $operation->setTitle('My new ticket'); $operation->setDescription('can you help me?'); $operation->setType(123); $operation->save();
User
// ... // load an existing user by id $user = new \Deepser\Entity\User(); $user->load(600); // load user by username $user = new \Deepser\Entity\User(); $user->load('myusername', 'username'); //... // load user collection $userCollection = \Deepser\Entity\User::getCollection(); $userCollection->addFilter('company_id', 'eq', 123); foreach($userCollection as $user){ echo $user->getFirstname(); }
Company
// ... // load an existing company by id $company = new \Deepser\Entity\Company(); $company->load(600); //... // load company collection $companyCollection = \Deepser\Entity\Company::getCollection(); $companyCollection->addFilter('name', 'like', '%ACME%'); foreach($companyCollection as $company){ echo $company->getName(); }
Credits
Support
Please open an issue in github
Contributor Code of Conduct
As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, age, or religion.
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
This Code of Conduct is adapted from the Contributor Covenant, version 1.0.0, available at http://contributor-covenant.org/version/1/0/0/.
License
Deepser API is released under the MIT License. See the bundled LICENSE file for details.
deepser/api-php 适用场景与选型建议
deepser/api-php 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 26 次下载、GitHub Stars 达 0, 最近一次更新时间为 2021 年 02 月 08 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「api」 「crm」 「help desk」 「Service Desk」 「Deepser」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 deepser/api-php 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 deepser/api-php 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 deepser/api-php 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Frequently Asked Questions (FAQ) plugin. With categories, on-the-fly search, customer helpfulness tracking and comments.
A PHP client for the Salesforce SOAP API
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
Command-line utility for Vtiger CRM.
Define useful links to be added to the dashboard for clients.
统计信息
- 总下载量: 26
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-02-08