PHP code example of dzer / coltaobao

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

    

dzer / coltaobao example snippets

config/config.php

return array(
    //时区
    'timeZone' => 'Asia/Shanghai',
    //资源保存路劲
    'resource' => './resource/coltaobao',
    //日志保存路径
    'log' => './tmp_log/coltaobao',
    //数据库配置信息
    'db' => array(
        'host' => '127.0.0.1',
        'username' => 'root',
        'password' => 'root',
        'db' => 'coltaobao',
        'port' => 3306,
        'prefix' => 'coltaobao_',
        'charset' => 'utf8'
    ),
);