All Projects → WXiangQian → laravel-dingtalk

WXiangQian / laravel-dingtalk

Licence: other
✨基于laravel5.5开发的钉钉机器人、支持多个钉钉群

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to laravel-dingtalk

PhpBotFramework
A framework for Telegram Bot API written in PHP.
Stars: ✭ 56 (+211.11%)
Mutual labels:  composer, webhook
Packages
Enhances Composer Satis with webhook integrations to GitHub and GitLab
Stars: ✭ 157 (+772.22%)
Mutual labels:  composer, webhook
Satis Server
🐳 Private, self-hosted Composer/Satis repository with unlimited private and open-source packages and support for Git, Mercurial, and Subversion. HTTP API, HTTPs support, webhook handler, scheduled builds, Slack and HipChat integration.
Stars: ✭ 96 (+433.33%)
Mutual labels:  composer, webhook
notify
推送通知 sdk(Bark、Chanify、钉钉群机器人、Discord、邮件、飞书群机器人、Gitter、Google Chat、iGot、Logger、Mattermost、Now Push、PushBack、Push、PushDeer、PushPlus、QQ 频道机器人、Rocket Chat、Server 酱、Showdoc Push、Slack、Telegram、Webhook、企业微信群机器人、息知、Zulip)。
Stars: ✭ 335 (+1761.11%)
Mutual labels:  webhook, dingtalk
GitHub-Webhook-Bot
It is a Simple Telegram Bot, which will listen to GitHub Webhook and inform via Telegram
Stars: ✭ 33 (+83.33%)
Mutual labels:  webhook
pr-reviews-reminder-action
A GitHub Action to send Slack/Teams notification for Pull Request that are waiting for reviewers.
Stars: ✭ 18 (+0%)
Mutual labels:  webhook
speech to text
how to use the Google Cloud Speech API to transcribe audio/video files.
Stars: ✭ 35 (+94.44%)
Mutual labels:  composer
http
Aplus Framework HTTP Library
Stars: ✭ 113 (+527.78%)
Mutual labels:  composer
pm2-githook
receive webhook from github/gitlab and ask pm2 to reload the application for you
Stars: ✭ 39 (+116.67%)
Mutual labels:  webhook
php-mime-detector
Detect a file's mime type using magic numbers.
Stars: ✭ 20 (+11.11%)
Mutual labels:  composer
egg-dingtalk
egg plugin for dingtalk
Stars: ✭ 29 (+61.11%)
Mutual labels:  dingtalk
hubot-dingtalk
hubot-dingtalk:支持钉钉Outgoing
Stars: ✭ 29 (+61.11%)
Mutual labels:  dingtalk
imageswap-webhook
Image Swap Mutating Admission Webhook for Kubernetes
Stars: ✭ 72 (+300%)
Mutual labels:  webhook
core
Freesewing is an open source platform for made-to-measure sewing patterns
Stars: ✭ 48 (+166.67%)
Mutual labels:  composer
validation
Aplus Framework Validation Library
Stars: ✭ 99 (+450%)
Mutual labels:  composer
cyclonedx-php-composer
Create CycloneDX Software Bill of Materials (SBOM) from PHP Composer projects
Stars: ✭ 20 (+11.11%)
Mutual labels:  composer
zoom-slack-status-updater
Update your Slack status automatically when you join a Zoom meeting.
Stars: ✭ 23 (+27.78%)
Mutual labels:  webhook
dingtalk-encrypt
dingTalk encrypt Node Version. 钉钉的非官方nodejs版AES加解密库 sdk
Stars: ✭ 16 (-11.11%)
Mutual labels:  dingtalk
create-shopify-app
Create Shopify App With JWT Authentication using NodeJs, React, Shopify Polaris and MongoDb
Stars: ✭ 58 (+222.22%)
Mutual labels:  webhook
REST-Api-with-Slim-PHP
REST API with PHP Slim Framework 3 and MySQL
Stars: ✭ 69 (+283.33%)
Mutual labels:  composer

laravel-DingTalk是基于laravel5.5开发的钉钉机器人

当前自定义机器人支持
文本(text)、链接(link)、markdown(markdown)三种消息类型
大家可以根据自己的使用场景选择合适的消息类型,达到最好的展示样式

安装方法

1、安装

    composer require wxiangqian/laravel-dingtalk
    composer install

    composer.json 中添加 "wxiangqian/laravel-dingtalk": "^1.2.0"  
    composer install 

1.0为版本号,可替换 如果无法安装 请执行一下 composer update nothing 然后 composer update

2、配置app.php

在config/app.php 'providers' 中添加

\Qian\DingTalk\DingTalkServiceProvider::class

3、执行命令生成配置文件

   php artisan vendor:publish 
   则生成 config/dingtalk.php

实例

$token可以去调用dingtalk.php里面的talk中的token
因为有时候一个项目会需要配置多个群的通知
所以决定修改的更灵活一点

实现Text发送

$DingTalk = new DingTalk();
$message = new Message();
$data = $message->text('测试text类型');
$res = $DingTalk->send($token,$data);
echo $res;

实现Link发送

$DingTalk = new DingTalk();
$message = new Message();
$title = '测试link类型title';
$text = '测试link类型text';
$messageUrl = 'https://www.baidu.com/';
$picUrl = '';
$data = $message->link($title, $text, $messageUrl, $picUrl);
$res = $DingTalk->send($token,$data);
echo $res;

实现Markdown发送

$DingTalk = new DingTalk();
$message = new Message();
$title = '北京天气MD';
$text = '# laravel-DingTalk是基于laravel5.5开发的钉钉机器人';
$data = $message->markdown($title, $text);
$res = $DingTalk->send($token,$data);
echo $res;

如满足您的需求,请留下来点个赞吧

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].