PHP code example of caojianfei / video-tools

1. Go to this page and download the library: Download caojianfei/video-tools 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/ */

    

caojianfei / video-tools example snippets

`
    例如抖音:$res = VideoManager::KuaiShou([
              'proxy_whitelist' => ['kuaishou'],//白名单,需要提交类名,全部小写
              'proxy' => '$ip:$port',
              'url_validator' => [
                    这边参考config/url-validator.php
              ]
          ])->start($url);
    可以参考config/url-validator.php的格式用参数传递,如果不指定则使用默认的
    不会怎么编写全部使用默认也是可以的