PHP code example of fastwhale / yii2-douyin

1. Go to this page and download the library: Download fastwhale/yii2-douyin 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/ */

    

fastwhale / yii2-douyin example snippets


/** @var \fastwhale\yii2\douyin\Douyin $api */
$api = \Yii::createObject([
    'class'  => \fastwhale\yii2\douyin\Douyin::class,
    'client_key' => $client_key,
    'client_secret' => $client_secret,
    ...
]);

php composer.phar