PHP code example of nimblephp / framework
1. Go to this page and download the library: Download nimblephp/framework 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/ */
nimblephp / framework example snippets
e = new \NimblePHP\Framework\Routes\Route(new \NimblePHP\Framework\Request());
$kernel = new \NimblePHP\Framework\Kernel($route);
$kernel->handle();
text
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
shell
php vendor/bin/nimble cache:clear
shell
php vendor/bin/nimble serve <host:127.0.0.1> <port:8080>