PHP code example of upscale / http-server-mock

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

    

upscale / http-server-mock example snippets

shell
php -S 127.0.0.1:8080 /tmp/http-server-mock/server.php