Download the PHP package saviorlv/yii2-dingtalk without Composer

On this page you can find all versions of the php package saviorlv/yii2-dingtalk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package yii2-dingtalk

yii2-dingtalk 钉钉群机器人

说明

群机器人是钉钉群的高级扩展功能。群机器人可以将第三方服务的信息聚合到群聊中,实现自动化的信息同步。目前,大部分机器人在添加后,还需要进行Webhook配置,才可正常使用(配置说明详见操作流程中的帮助链接)。

例如:通过聚合GitHub,GitLab等源码管理服务,实现源码更新同步。通过聚合Trello,JIRA等项目协调服务,实现项目信息同步。

另外,群机器人支持Webhook协议的自定义接入,支持更多可能性,例如:你可将运维报警通过自定义机器人聚合到钉钉群实现提醒功能。

安装

配置

在使用本扩展之前,你需要去 群机器人 获取相关信息。

使用

在config/main.php配置文件中定义component配置信息

发送 Text 信息

方法:

参数:

参数 参数类型 必须 说明
content String 消息内容
atMobiles Array 被@人的手机号
isAtAll bool @所有人时:true,否则为:false

实例:

发送 Link 链接

方法:

参数:

参数 参数类型 必须 说明
title String 消息标题
text String 消息内容。如果太长只会部分展示
messageUrl String 点击消息跳转的URL
picUrl String 图片URL

实例:

发送 MarkDown 消息

方法:

参数:

参数 必选 类型 说明
title true string 首屏会话透出的展示内容
content true string markdown格式的消息
atMobiles Array 被@人的手机号(在text内容里要有@手机号)
isAtAll bool @所有人时:true,否则为:false

实例:

整体跳转 ActionCard类型

方法:

参数:

参数 必选 类型 说明
title true string 首屏会话透出的展示内容
content true string markdown格式的消息
singleTitle true string 单个按钮的方案。(设置此项和singleURL后btns无效)
singleURL true string 点击singleTitle按钮触发的URL
btnOrientation false string 0-按钮竖直排列,1-按钮横向排列
hideAvatar false string 0-正常发消息者头像,1-隐藏发消息者头像

实例:

独立跳转 ActionCard 类型

方法:

参数:

参数 必选 类型 说明
title true string 首屏会话透出的展示内容
content true string markdown格式的消息
btns true array 按钮的信息:title-按钮方案,actionURL-点击按钮触发的URL
btnOrientation false string 0-按钮竖直排列,1-按钮横向排列
hideAvatar false string 0-正常发消息者头像,1-隐藏发消息者头像

实例:

FeedCard 类型

方法:

参数:

参数 必选 类型 说明
title true string 单条信息文本
messageURL true string 点击单条信息到跳转链接
picURL true string 单条信息后面图片的URL

实例:

参考


All versions of yii2-dingtalk with dependencies

PHP Build Version
Package Version
Requires php Version >=5.5.0
yiisoft/yii2 Version ^2.0.15
guzzlehttp/guzzle Version ^6.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package saviorlv/yii2-dingtalk contains the following files

Loading the files please wait ....