https://github.com/normal-coder/easy-feishu
飞书 PHP SDK
https://github.com/normal-coder/easy-feishu
Last synced: 3 months ago
JSON representation
飞书 PHP SDK
- Host: GitHub
- URL: https://github.com/normal-coder/easy-feishu
- Owner: normal-coder
- License: mit
- Created: 2022-12-22T10:18:58.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-22T10:21:22.000Z (about 3 years ago)
- Last Synced: 2024-04-17T00:01:54.337Z (almost 2 years ago)
- Language: PHP
- Size: 9.25 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Requirement
1. PHP >= 7.0.0
2. **[composer](https://getcomposer.org/)**
3. openssl 拓展
4. fileinfo 拓展(上传文件需要用到)
5. mbstring 拓展
> SDK 对所使用的框架并无特别要求
## Installation
```shell
composer require "mayunfeng/easy-feishu ^1.0" -vvv
```
## Usage
基本使用(以服务端为例):
```php
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](https://github.com/mayunf/laravel-feishu)
## License
MIT