mengxiao-ac/easy-feishu

v1.1.7 2023-02-12 04:53 UTC

This package is auto-updated.

Last update: 2024-04-12 07:45:24 UTC


README

  1. PHP >= 7.0.0
  2. composer
  3. openssl 拓展
  4. fileinfo 拓展(上传文件需要用到)
  5. 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