PHP code example of mayunfeng / laravel-feishu

1. Go to this page and download the library: Download mayunfeng/laravel-feishu library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

mayunfeng / laravel-feishu example snippets


  $app = \Mayunfeng\LaravelFeishu\EasyFeishu::openPlatform();
  
  // 支持传入配置账号名称
  \Mayunfeng\LaravelFeishu\EasyFeishu::openPlatform('foo'); // `foo` 为配置文件中的名称,默认为 `default`
  //...
shell
php artisan vendor:publish --provider="Mayunfeng\LaravelFeishu\ServiceProvider"