PHP code example of hampus / stack-static-file

1. Go to this page and download the library: Download hampus/stack-static-file 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/ */

    

hampus / stack-static-file example snippets




$options = [];

$app = (new Stack\Builder)
    ->push('Hampus\Stack\StaticFile', $options)
    ->resolve($app);

$app = new Hampus\Stack\StaticFile($app, $options);