PHP code example of kohkimakimoto / altax-server

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

    

kohkimakimoto / altax-server example snippets


Task::register('server', 'Altax\Contrib\Server\Command\ServerCommand')
->config(array(
    "host" => "localhost",
    "port" => 1234,
    "docroot" => "/path/to/document/root",
    "script" => "/path/to/router/script.php",
    ));