PHP code example of nixphp / app
1. Go to this page and download the library: Download nixphp/app 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/ */
nixphp / app example snippets
route()->add('GET', '/', [App\Controllers\HomeController::class, 'index']);
namespace App\Controllers;
use function NixPHP\render;
class HomeController
{
public function index()
{
return render('home', ['name' => 'World']);
}
}
use function NixPHP\s;
/app
/Controllers
/Models
/views
config.php
routes.php
/public
index.php
bootstrap.php
composer.json