helpscout/apps
Composer 安装命令:
composer require helpscout/apps
包简介
Client library to assist with building dynamic apps that integrate with the Help Scout UI
关键字:
README 文档
README
📢 We're thrilled to announce that our new App Developer Platform is now available to all customers. We highly encourage all new apps to be built on the platform to take advantage of its expanded capabilities.
For those looking to migrate from our legacy custom apps, we have prepared a comprehensive Migration Guide. This guide will help you seamlessly transition to the new platform.
All existing legacy custom apps will continue to function as before. If you'd like to use the legacy framework to install a legacy custom app, click here. You can still access the documentation for Legacy Custom Apps here.
Please note: While we will continue to support this legacy PHP library, future development will be focused on our new Apps Platform.
Dynamic Apps Client Library
Client library to assist with building custom apps that integrate with Help Scout. More information: http://developer.helpscout.net/custom-apps/
Current Version
- 1.1.1
Please see the Changelog for details.
Installation
The Help Scout apps client can be installed using Composer.
Composer
Inside of composer.json specify the following:
{
"require": {
"helpscout/apps": "1.1.*"
}
}
Example Usage (1)
use HelpScoutApp\DynamicApp;
include 'src/HelpScoutApp/DynamicApp.php';
$app = new DynamicApp('SECRET-KEY-HERE');
if ($app->isSignatureValid()) {
$customer = $app->getCustomer();
$user = $app->getUser();
$convo = $app->getConversation();
$mailbox = $app->getMailbox();
$html = array(
'<p>Convo</p>',
'<ul>',
'<li>Id: ' . $convo->getId() . '</li>',
'<li>Number: ' . $convo->getNumber() . '</li>',
'<li>Subject: ' . $convo->getSubject() . '</li>',
'</ul>',
'<p>Customer</p>',
'<ul>',
'<li>First: ' . $customer->getFirstName() . '</li>',
'<li>Last: ' . $customer->getLastName() . '</li>',
'<li>Email: ' . $customer->getEmail() . '</li>',
'</ul>',
'<p>User</p>',
'<ul>',
'<li>First: ' . $user->getFirstName() . '</li>',
'<li>Last: ' . $user->getLastName() . '</li>',
'<li>Id: ' . $user->getId() . '</li>',
'</ul>',
'<p>Mailbox</p>',
'<ul>',
'<li>ID: ' . $mailbox->getId() . '</li>',
'<li>Email: ' . $mailbox->getEmail() . '</li>',
'</ul>'
);
echo $app->getResponse($html);
} else {
echo 'Invalid Request';
}
Example Usage (2)
use HelpScoutApp\DynamicApp;
include 'src/HelpScoutApp/DynamicApp.php';
$app = new DynamicApp('SECRET-KEY-HERE');
if ($app->isSignatureValid()) {
echo $app->getResponse('<p>Hello World</p>');
} else {
echo 'Invalid Request';
}
helpscout/apps 适用场景与选型建议
helpscout/apps 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 435.89k 次下载、GitHub Stars 达 37, 最近一次更新时间为 2014 年 05 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「apps」 「helpscout」 「dynamic-app」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 helpscout/apps 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 helpscout/apps 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 helpscout/apps 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Help Scout API v2 Client
Service provider and facade to integrate the Help Scout Mailbox API 2.0 with Laravel and Lumen
Help Scout API v2 Client - musora media fork
API client for the Help Scout Docs API
Help Scout module for Codeception
A CMS bundle for mobile solutions
统计信息
- 总下载量: 435.89k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 38
- 点击次数: 20
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-05-30