PHP code example of yuhari / box

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

    

yuhari / box example snippets


> 
> 		$helper = new \box\Downloader\Helper($source_path, $target_path) ;
> 		$helper->start() ;
> 

> 
> 		$helper = new \box\ListHelper() ;
> 		$helper->setConsumerNum(10)  # 设置消费者数量
> 				->setListData($list)  # 设置待消费队列数据
> 				->setHandler($consumer, $args...) # 设置消费者函数和必须额外参数
>