Loading .gitignore 0 → 100644 +3 −0 Original line number Diff line number Diff line /vendor/ composer.lock .idea/ No newline at end of file .php_cs 0 → 100644 +27 −0 Original line number Diff line number Diff line <?php $header = <<<EOF This file is part of the mingyoung/dingtalk. (c) 张铭阳 <mingyoungcheung@gmail.com> This source file is subject to the MIT license that is bundled with this source code in the file LICENSE. EOF; return PhpCsFixer\Config::create() ->setRules([ '@Symfony' => true, 'phpdoc_summary' => false, 'header_comment' => ['header' => $header], 'ordered_imports' => true, 'phpdoc_no_empty_return' => false, 'no_empty_comment' => false, ]) ->setFinder( PhpCsFixer\Finder::create() ->exclude('vendor') ->in(__DIR__) ) ->setUsingCache(false) ; .travis.yml 0 → 100644 +27 −0 Original line number Diff line number Diff line language: php env: global: - setup=stable matrix: fast_finish: true include: - php: 7.0 - php: 7.0 env: setup=lowest - php: 7.1 - php: 7.1 env: setup=lowest - php: 7.2 - php: 7.2 env: setup=lowest - php: 7.3 - php: 7.3 env: setup=lowest install: - if [[ $setup = 'stable' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-stable --no-suggest; fi - if [[ $setup = 'lowest' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-lowest --prefer-stable --no-suggest; fi script: ./vendor/bin/phpunit LICENSE 0 → 100644 +21 −0 Original line number Diff line number Diff line MIT License Copyright (c) 2020 张铭阳 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. README.md +55 −1 Original line number Diff line number Diff line # dingtalk <p align="center"> <h1 align="center">EasyDingTalk</h1> </p> <p align="center"> <a href="https://travis-ci.org/mingyoung/dingtalk"><img src="https://travis-ci.org/mingyoung/dingtalk.svg" alt="Build Status"></a> <a href="https://scrutinizer-ci.com/g/mingyoung/dingtalk/?branch=master"><img src="https://scrutinizer-ci.com/g/mingyoung/dingtalk/badges/quality-score.png?b=master" alt="Scrutinizer Code Quality"></a> <a href="https://packagist.org/packages/mingyoung/dingtalk"><img src="https://poser.pugx.org/mingyoung/dingtalk/v/stable.svg" alt="Latest Stable Version"></a> <a href="https://packagist.org/packages/mingyoung/dingtalk"><img src="https://poser.pugx.org/mingyoung/dingtalk/d/total.svg" alt="Total Downloads"></a> <a href="https://packagist.org/packages/mingyoung/dingtalk"><img src="https://poser.pugx.org/mingyoung/dingtalk/license.svg" alt="License"></a> </p> ## 介绍 EasyDingTalk 封装了钉钉身份验证、通讯录管理、消息通知、审批、群机器人、业务事件回调管理等服务端接口,让开发者可以使用简单的配置,提供简洁的 API 以供方便快速地调用钉钉接口。 ## 环境要求 - PHP 7.0+ - [Composer](https://getcomposer.org/) ## 安装 ```bash composer require mingyoung/dingtalk:^2.0 ``` ## 使用 ```php use EasyDingTalk\Application; $config = [ 'corp_id' => 'dingd3ir8195906jfo93', 'app_key' => 'dingwu33fo1fjc0fszad', 'app_secret' => 'RsuMFgEIY3jg5UMidkvwpzEobWjf9Fcu3oLqLyCUIgzULm54WcV7j9fi3fJlUshk', ]; $app = new Application($config); ``` ## 文档 [https://docs.easydingtalk.org](https://docs.easydingtalk.org) ## License MIT ## 支持作者 开源不易,如果你觉得 EasyDingTalk 节省了你的时间,方便了你的开发,不妨赞赏支持一下 <img width="280" height="280" src="https://user-images.githubusercontent.com/6228858/69937515-f957d180-1515-11ea-91bb-2b99684e8898.JPG"> Loading
.gitignore 0 → 100644 +3 −0 Original line number Diff line number Diff line /vendor/ composer.lock .idea/ No newline at end of file
.php_cs 0 → 100644 +27 −0 Original line number Diff line number Diff line <?php $header = <<<EOF This file is part of the mingyoung/dingtalk. (c) 张铭阳 <mingyoungcheung@gmail.com> This source file is subject to the MIT license that is bundled with this source code in the file LICENSE. EOF; return PhpCsFixer\Config::create() ->setRules([ '@Symfony' => true, 'phpdoc_summary' => false, 'header_comment' => ['header' => $header], 'ordered_imports' => true, 'phpdoc_no_empty_return' => false, 'no_empty_comment' => false, ]) ->setFinder( PhpCsFixer\Finder::create() ->exclude('vendor') ->in(__DIR__) ) ->setUsingCache(false) ;
.travis.yml 0 → 100644 +27 −0 Original line number Diff line number Diff line language: php env: global: - setup=stable matrix: fast_finish: true include: - php: 7.0 - php: 7.0 env: setup=lowest - php: 7.1 - php: 7.1 env: setup=lowest - php: 7.2 - php: 7.2 env: setup=lowest - php: 7.3 - php: 7.3 env: setup=lowest install: - if [[ $setup = 'stable' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-stable --no-suggest; fi - if [[ $setup = 'lowest' ]]; then travis_retry composer update --prefer-dist --no-interaction --prefer-lowest --prefer-stable --no-suggest; fi script: ./vendor/bin/phpunit
LICENSE 0 → 100644 +21 −0 Original line number Diff line number Diff line MIT License Copyright (c) 2020 张铭阳 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
README.md +55 −1 Original line number Diff line number Diff line # dingtalk <p align="center"> <h1 align="center">EasyDingTalk</h1> </p> <p align="center"> <a href="https://travis-ci.org/mingyoung/dingtalk"><img src="https://travis-ci.org/mingyoung/dingtalk.svg" alt="Build Status"></a> <a href="https://scrutinizer-ci.com/g/mingyoung/dingtalk/?branch=master"><img src="https://scrutinizer-ci.com/g/mingyoung/dingtalk/badges/quality-score.png?b=master" alt="Scrutinizer Code Quality"></a> <a href="https://packagist.org/packages/mingyoung/dingtalk"><img src="https://poser.pugx.org/mingyoung/dingtalk/v/stable.svg" alt="Latest Stable Version"></a> <a href="https://packagist.org/packages/mingyoung/dingtalk"><img src="https://poser.pugx.org/mingyoung/dingtalk/d/total.svg" alt="Total Downloads"></a> <a href="https://packagist.org/packages/mingyoung/dingtalk"><img src="https://poser.pugx.org/mingyoung/dingtalk/license.svg" alt="License"></a> </p> ## 介绍 EasyDingTalk 封装了钉钉身份验证、通讯录管理、消息通知、审批、群机器人、业务事件回调管理等服务端接口,让开发者可以使用简单的配置,提供简洁的 API 以供方便快速地调用钉钉接口。 ## 环境要求 - PHP 7.0+ - [Composer](https://getcomposer.org/) ## 安装 ```bash composer require mingyoung/dingtalk:^2.0 ``` ## 使用 ```php use EasyDingTalk\Application; $config = [ 'corp_id' => 'dingd3ir8195906jfo93', 'app_key' => 'dingwu33fo1fjc0fszad', 'app_secret' => 'RsuMFgEIY3jg5UMidkvwpzEobWjf9Fcu3oLqLyCUIgzULm54WcV7j9fi3fJlUshk', ]; $app = new Application($config); ``` ## 文档 [https://docs.easydingtalk.org](https://docs.easydingtalk.org) ## License MIT ## 支持作者 开源不易,如果你觉得 EasyDingTalk 节省了你的时间,方便了你的开发,不妨赞赏支持一下 <img width="280" height="280" src="https://user-images.githubusercontent.com/6228858/69937515-f957d180-1515-11ea-91bb-2b99684e8898.JPG">