PHP code example of leon723 / chestnut

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

    

leon723 / chestnut example snippets



 = new Chestnut\Foundation\Application(
    realpath("../")
);

Route::group(['namespace' => 'App\Controllers'], function () {
    

location / {
    try_files $uri $uri/ /index.php?$query_string;
}