PHP code example of panwenbin / yii2-on-swoole

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

    

panwenbin / yii2-on-swoole example snippets


defined('YII_DEBUG') or define('YII_DEBUG', false); // 如果不定义则是true
defined('YII_ENV') or define('YII_ENV', 'prod'); // 如果不定义则是dev