mayunfeng/easy-feishu

v1.1.4 2022-01-15 09:13 UTC

This package is auto-updated.

Last update: 2024-09-26 11:49:11 UTC


README

  1. PHP >= 7.0.0
  2. composer
  3. openssl 扩展
  4. fileinfo 扩展(上传文件时需要用到)
  5. mbstring 扩展

SDK 对使用的框架没有特别要求

安装

composer require "mayunfeng/easy-feishu ^1.0" -vvv

使用方法

基本使用(以服务端为例)

<?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();

集成

Laravel 6 扩展包: mayunfeng/laravel-feishu

许可证

MIT