mayunfeng / easy-feishu
飞书SDK
Installs: 3 926
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 5
Open Issues: 2
Requires
- php: >=7.3.0
- ext-curl: *
- ext-fileinfo: *
- ext-json: *
- ext-mbstring: *
- ext-openssl: *
- mayunfeng/supports: ^1.0
- pimple/pimple: ~3.0
- psr/simple-cache: ^1.0
- symfony/cache: ^3.3|^4.3|^5.2|^5.3
- symfony/http-foundation: ^2.7|^3.0|^4.0|^5.0
- symfony/psr-http-message-bridge: ~0.3|^1.0
Requires (Dev)
- phpunit/phpunit: ^9.5
- symfony/var-dumper: ^5.3
README
- PHP >= 7.0.0
- composer
- openssl 拓展
- fileinfo 拓展(上传文件需要用到)
- mbstring 拓展
SDK 对所使用的框架并无特别要求
Installation
composer require "mayunfeng/easy-feishu ^1.0" -vvv
Usage
基本使用(以服务端为例):
<?php use EasyFeishu\Foundation\Application; $options = [ 'debug' => false, 'app_id' => 'cli_xxxxxx', 'app_secret' => 'xxxxxxxxxxxxxxxxxxx', 'encrypt_key' => 'xxxxxx', 'log' => [ 'file' => __DIR__.'/../logs/'.date('Y-m-d').'.log', 'level' => 'debug', ], // ... ]; $app = new Application($options); $server = $app->server; $departments = $app->contact->getDepartments();
Integration
Laravel 6 拓展包: mayunfeng/laravel-feishu
License
MIT