PHP code example of onexin / discuzxtq

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

    

onexin / discuzxtq example snippets


        'charset'   => 'utf8', //Q数据编码
        'collation' => 'utf8mb4_unicode_ci', //Q数据库字符集

        'charset'   => 'utf8mb4', //Q数据编码
        'collation' => 'utf8mb4_unicode_ci', //Q数据库字符集
sh
# 开始转换所有数据
> php discoa app:xtq

# 清空Q数据库
> php discoa app:clean cleanDatabase