Download the PHP package mitoop/robot without Composer

On this page you can find all versions of the php package mitoop/robot. 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 robot

Robot

🤖️ 轻松给钉钉/企业微信/飞书机器人发送消息

特点

  1. 支持群发
  2. 基于配置,易于管理
  3. 统一的返回值格式, 方便监控
  4. 易于扩展

环境需求

安装

使用

支持的消息类型

各家机器人消息类型都有多种,而且不尽相同。

我们提供两种最常用的: 发送文本消息和发送Markdown消息, v2.1新增发送原始消息

  1. 发送文本消息

  2. 发送markdown消息(飞书目前不支持markdown消息)

各家markdown都是标准Markdown的子集,而且不太相同,所以可以根据 $channel 参数类型来判断返回值,例如:

  1. v2.1 新增发送原始消息, 发送原始消息时, 配置项中的show_env, at配置项将不起作用.

发送群组

默认向 default 中的群组发送消息,如果向其他群组发送消息,调用 group 方法即可,支持多个群组发送。

消息中@其他成员

消息默认会@对应群组配置中 at 里的成员,如果要自定义@成员,传入 at 参数即可

sendTextMsgsendMarkdownMsg 都支持传入 at 参数

返回值

由于支持群发,所以返回值为一个数组,结构如下:

自定义channel

支持自定义发送channel,自定义的channel类可继承 Mitoop\Robot\Channels\Channel

参考

⚠️注意

  1. 服务商发送频率限制
    1. 飞书(Lark同):客服反馈目前没有频率限制
    2. 企业微信:每个机器人发送的消息不能超过20条/分钟 点击查看详情
    3. 钉钉:每个机器人每分钟最多发送20条。如果超过20条,会限流10分钟 点击查看详情
  2. 消息大小(消息字数太多,可能会发送失败)
    1. 飞书(Lark同):建议 JSON 的长度不超过 30k 点击查看详情
    2. 企业微信:未找到文档 不建议太大
    3. 钉钉:未找到文档 不建议太大

License

MIT


All versions of robot with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1
ext-json Version *
guzzlehttp/guzzle Version ^6.2 || ^7.0
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 mitoop/robot contains the following files

Loading the files please wait ....