Download the PHP package calject/ding-robot without Composer

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

dingRobot

Table of Contents

v1.1.0 新版自定义机器人webhook

一、介绍 top

钉钉机器人消息推送 简单封装

二、安装教程 top

composer require "calject/ding-robot"

三、说明 top

3.1 说明

3.2 推送响应说明

DingRobot 该类未实现对接口响应的处理,默认request方法会返回curl原始的返回数据。

  1. 继承DingRobot类,并重新request方法, 使用自定义的请求类实现并返回

  2. 新建类并实现CalJect\DingRobot\Contacts\IPush接口

  3. 在外部判断响应接口。注: 成功将返回{"errmsg":"ok","errcode":0}

四、使用 top

4.1 at(@) 说明

  1. message实例中若提供有atAll()或者atMobile(),则表示该类型消息可以@指定或者所有人

Image text

Image text

Image text

  1. @所有人文本显示与隐藏, 部分消息需要设置该参数以显示@所有人文本

Image text

Image text

4.2 api各类型消息推送使用说明

1. 推送文本消息

Image text

2. 推送markdown消息

Image text

3. 推送ActionCard类型消息(一)

Image text

Image text

4. 推送ActionCard类型消息(二)

Image text

5. 推送link类型消息

Image text

6. 推送FeedCard类型消息

Image text

五、拓展 top

1. markdown 类型拓展

继承CalJect\DingRobot\Contacts\MarkDown\AbsMDText抽象类,并实现handle函数,返回处理后的文本

2. 消息拓展

1. 继承`CalJect\DingRobot\Contacts\PushData\AbsPushDataAt` 或 `CalJect\DingRobot\Contacts\PushData\AbsPushData` 抽象类,实现`type()`方法返回消息类型,实现`typeData()`方法返回消息实体数据
2. 继承已有的数据模型,并重写或拓展方法

Image text


All versions of ding-robot with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0
ext-json Version *
ext-curl Version *
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 calject/ding-robot contains the following files

Loading the files please wait ....