PHP code example of amphp / aerys

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

    

amphp / aerys example snippets


return (new Aerys\Host)
    ->expose("*", 1337)
    ->use(Aerys\root(__DIR__ . "/public"));
bash
php bin/aerys -c demo.php
bash
php bin/aerys -d -c demo.php