PHP code example of likai / yii-webserver

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

    

likai / yii-webserver example snippets


return array(
    'commandMap' => array(
        'serve' => array(
            'class' => '\\Likai\\YiiWebserver\\ServerCommand',
            'host' => '127.0.0.1',
            'port' => '8888',
        ),
    ),
);

return array(
    'commandMap' => array(
        'serve' => array(
            'class' => 'ext.YiiWebserver.ServerCommand',
            'host' => '127.0.0.1',
            'port' => '8888',
        ),
    ),
);