Download the PHP package ilovelylong/dingtalk2 without Composer

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

DingTalk2

原项目地址:https://github.com/mingyoung/dingtalk。 由于原项目停止维护了,自用打包一份

当前食用方式

composer require ilovelylong/dingtalk2

环境要求

实例化

:::warning 文档中提及到的 $app 表示的是如下实例化后的 EasyDingTalk\Application 实例,就不在每个模块中描述了 :::

传递H5,小程序 配置后 使用 $app->MFC
返回对应的实例,用此实例可以调用对应的接口。具体使用demo =》https://gitee.com/chinakaiyuan/laravelgrid

应用免登录 说明

扫码登录 说明

跳转前端,我这样写

当然你也可以这样写

免登录,和扫码登录用原文档代码,是相当简便的。但是我没试。

订阅消息

按照原文档操作就没毛病了,加密解密,接口验证,配置文件写好,都自动的了。 日志在这里就调用了3次 EasyDingTalk\Kernel\Server 内, 1、获取的加密订阅数据 2、解密的加密数据 3、发送给钉钉的数据 订阅消息我大概这样处理

机器人回调消息

::: tip SDK 目前提供三种方法以方便你监听钉钉机器人的@事件推送 当然你可以多次调用 push 方法,实现多个消息处理器 使用方式参考 上一章 服务器事件 唯一要注意的是,每一个处理器 都可以返回一个消息,当然也可以不返回消息。也就是说一次@机器人,可以自动回复多条消息。 :::

获取 robot实例,返回多条消息

获取 robot实例,发送消息

::: tip $this->robot 会自动在配置中找第一个kind 是robot的配置。 $app->robot01 会找robot01 配置,根据kind 初始化一个机器人 :::


All versions of dingtalk2 with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ^7.4
php Version >=7.0
pimple/pimple Version ^3.0
monolog/monolog Version ^1.23 || ^2.0
symfony/http-foundation Version ^3.2 || ^4.0 || ^5.0|| ^6.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 ilovelylong/dingtalk2 contains the following files

Loading the files please wait ....