PHP code example of ronappleton / static-web
1. Go to this page and download the library: Download ronappleton/static-web 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/ */
ronappleton / static-web example snippets
use RonAppleton\StaticWeb\Server;
use RonAppleton\StaticWeb\Router;
Server::run($port, $domain, $docRoot, $routerRoute);
$this->router = new Router();
$this->router->get($route, $content, $options = []);