https://github.com/normal-coder/laravel-feishu
Laravel Feishu SDK
https://github.com/normal-coder/laravel-feishu
Last synced: about 2 months ago
JSON representation
Laravel Feishu SDK
- Host: GitHub
- URL: https://github.com/normal-coder/laravel-feishu
- Owner: normal-coder
- License: mit
- Created: 2022-12-22T10:29:33.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-22T11:03:24.000Z (about 3 years ago)
- Last Synced: 2025-07-10T15:24:50.584Z (7 months ago)
- Language: PHP
- Size: 9.77 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# laravel-wechat
飞书 SDK for Laravel 6, 基于 [mayunfeng/easy-feishu](https://github.com/mayunf/easy-feishu)
## 框架要求
Laravel >= 6.0
## 安装
```shell
composer require "mayunfeng/laravel-feishu:^1.0"
```
## 配置
### Laravel 应用
1. 创建配置文件:
```shell
php artisan vendor:publish --provider="Mayunfeng\LaravelFeishu\ServiceProvider"
```
2. 修改应用根目录下的 `config/fefishu.php` 中对应的参数即可。
3. 每个模块基本都支持多账号,默认为 `default`。
### 我们有以下方式获取 SDK 的服务实例
##### 使用Facade
```php
$app = \Mayunfeng\LaravelFeishu\EasyFeishu::openPlatform();
// 支持传入配置账号名称
\Mayunfeng\LaravelFeishu\EasyFeishu::openPlatform('foo'); // `foo` 为配置文件中的名称,默认为 `default`
//...
```
## License
MIT