chenxi2015/dingtalk-service
Composer 安装命令:
composer require chenxi2015/dingtalk-service
包简介
a dingtalk api service package
README 文档
README
钉钉的企业api封装包
Installation
The recommended way to install dingtalk-service is through Composer.
# Install Composer curl -sS https://getcomposer.org/installer | php
Next, run the Composer command to install the latest stable version of dingtalk-service:
php composer.phar require chenxi2015/dingtalk-service # OR composer require chenxi2015/dingtalk-service
Help and docs
Robot API
sendRobotMsg
use Gxheart\Http\Robot; $robot = new Robot(); // text echo $robot->sendRobotMsg('access_token', [ 'content' => '这是内容', 'atMobiles' => [], 'isAtAll' => true ]); // link echo $robot->sendRobotMsg('access_token', [ 'text' => '这是内容', 'title' => '这是标题', 'messageUrl' => '', 'picUrl' => '' ], 'link'); // markdown echo $robot->sendRobotMsg('access_token', [ 'text' => '这是内容', 'title' => '这是标题', 'atMobiles' => [], 'isAtAll' => true ], 'markdown'); // actionCard1 echo $robot->sendRobotMsg('access_token', [ 'title' => '白白管家官网', 'text' => ' 这是用户中心系统的钉钉服务层 author by cx', 'singleTitle' => '阅读全文', 'singleURL' => 'http://www.baibaiguanjia.com', 'btnOrientation' => 0, 'hideAvatar' => 0 ], 'actionCard'); // actionCard2 echo $robot->sendRobotMsg('access_token', [ 'title' => '白白管家官网', 'text' => ' 这是用户中心系统的钉钉服务层 author by cx', 'btns' => [ [ "title" => "内容不错", "actionURL" => "http://www.baibaiguanjia.com/" ], [ "title" => "不感兴趣", "actionURL" => "http://www.baibaiguanjia.com/" ] ], 'btnOrientation' => 0, 'hideAvatar' => 0 ], 'actionCard'); // feedCard echo $robot->sendRobotMsg('access_token', [ 'links' => [ [ "title" => "时代的火车向前开", "messageURL" => "https://www.dingtalk.com/s?__biz=MzA4NjMwMTA2Ng==&mid=2650316842&idx=1&sn=60da3ea2b29f1dcc43a7c8e4a7c97a16&scene=2&srcid=09189AnRJEdIiWVaKltFzNTw&from=timeline&isappinstalled=0&key=&ascene=2&uin=&devicetype=android-23&version=26031933&nettype=WIFI", "picURL" => "https://www.dingtalk.com/" ], [ "title" => "时代的火车向前开2", "messageURL" => "https://www.dingtalk.com/s?__biz=MzA4NjMwMTA2Ng==&mid=2650316842&idx=1&sn=60da3ea2b29f1dcc43a7c8e4a7c97a16&scene=2&srcid=09189AnRJEdIiWVaKltFzNTw&from=timeline&isappinstalled=0&key=&ascene=2&uin=&devicetype=android-23&version=26031933&nettype=WIFI", "picURL" => "https://www.dingtalk.com/" ] ], ], 'feedCard');
chenxi2015/dingtalk-service 适用场景与选型建议
chenxi2015/dingtalk-service 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 34 次下载、GitHub Stars 达 5, 最近一次更新时间为 2019 年 08 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 chenxi2015/dingtalk-service 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 chenxi2015/dingtalk-service 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 34
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-08-01