PHP code example of wisdech / laravel-wework

1. Go to this page and download the library: Download wisdech/laravel-wework 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/ */

    

wisdech / laravel-wework example snippets


//使用Facade
use Wisdech\Wework\Facade\Wework

$loginUri=Wework::buildLoginUri(...);

$sdk=new Wisdech\Wework\WeworkSDK('CorpID','AgentID','Secret')

$loginUri=$sdk->buildLoginUri(...);
bash
#发布配置文件
php artisan vendor:publish --tag=wework-config