2017 © Pedro Peláez
 

yii2-extension yii2-dingtalk

The dingtalk extension for the Yii framework

image

xutl/yii2-dingtalk

The dingtalk extension for the Yii framework

  • Wednesday, December 20, 2017
  • by xutl
  • Repository
  • 0 Watchers
  • 0 Stars
  • 3,354 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 43 % Grown

The README.md

yii2-dingtalk

Latest Stable Version Total Downloads Dependency Status License, (*1)

Installation

Next steps will guide you through the process of installing using composer. Installation is a quick and easy three-step process., (*2)

Step 1: Install component via composer

Either run, (*3)

composer require --prefer-dist xutl/yii2-dingtalk

or add, (*4)

"xutl/yii2-dingtalk": "~1.0.0"

to the require section of your composer.json., (*5)

Step 2: Configuring your application

Add following lines to your main configuration file:, (*6)

    'components' => [
        'log' => [
            'targets' => [
                [
                    'class' => 'xutl\dingtalk\DingTalkTarget',
                    'dingTalk' => 'dingTalk',
                    'levels' => ['error', 'warning'],
                ],
            ],
        ],
        'dingTalk' => [
            'class' => 'xutl\dingtalk\DingTalk',
            'accessToken' => '1234567890',
        ],
    ],

Step 3: Start using

Yii::$app->dingTalk->sendText('我其实是一个机器人');
Yii::$app->dingTalk->sendLink('我其实是一个机器人','我其实是一个机器人我其实是一个机器人我其实是一个机器人我其实是一个机器人!','','https://www.dingtalk.com/');
Yii::$app->dingTalk->sendMarkdown('我其实是一个机器人','我其实是一个机器人');
Yii::$app->dingTalk->sendActionCard......

Read https://open-doc.dingtalk.com/docs/doc.htm?spm=a219a.7629140.0.0.p2lr6t&treeId=257&articleId=105733&docType=1 to continue, (*7)

License

This is released under the MIT License. See the bundled LICENSE.md for details., (*8)

The Versions

20/12 2017

dev-master

9999999-dev

The dingtalk extension for the Yii framework

  Sources   Download

MIT

The Requires

 

by Avatar xutl

api yii dingtalk

14/09 2017

1.0.1

1.0.1.0

The dingtalk extension for the Yii framework

  Sources   Download

MIT

The Requires

 

by Avatar xutl

api yii dingtalk

13/09 2017

1.0.0

1.0.0.0

The dingtalk extension for the Yii framework

  Sources   Download

MIT

The Requires

 

by Avatar xutl

api yii dingtalk