Download the PHP package wantp/laravel-dingtalk-notification-channel without Composer

On this page you can find all versions of the php package wantp/laravel-dingtalk-notification-channel. 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 laravel-dingtalk-notification-channel

Laravel-dingtalk-notification-channel

Laravel消息通知的钉钉通知扩展包

Require

Install

Usage

发布配置文件,会发布配置文件app/dingtalk.php
钉钉通知配置

.env

格式化钉钉通知

如果要支持钉钉通知,那么你需要在通知类上定义一个via和一个toDingTalk 方法。via方法返回通知channel, toDingTalk方法接收一个 $notifiable 实体并返回 Wantp\Notifications\Messages\DingTalkMessage 实例。

app/Notifications/YourNotification.php

钉钉通知路由

使用 dingtalk 通道发送通知的时候,需要在实体上定义一个 routeNotificationForDingTalk 方法, 该方法返回钉钉的user_id。
以下示例是DingTalkUser模型记录了钉钉的user_id,User模型关联DingTalkUser并通过 routeNotificationForDingTalk方法返回user对应的钉钉user_id,这只是一个示例,你可以定义自己的实现。

发送钉钉通知
发送钉钉通知给多个用户
自定义发送通知路由,可发送钉钉通知给不在系统中的用户
link类型通知

内置了markdown(默认)和link类型的通知,使用link方法定义link类型通知 app/Notifications/YourNotification.php

dingtalk channel和其他channel的使用几乎没有什么不同,其他用法请参考Laravel文档

License

The code for laravel-dingtalk-notification-channel is distributed under the terms of the MIT license (see LICENSE).


All versions of laravel-dingtalk-notification-channel with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1.3
guzzlehttp/guzzle Version ^6.0
illuminate/notifications Version ~5.8.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 wantp/laravel-dingtalk-notification-channel contains the following files

Loading the files please wait ....