1. Go to this page and download the library: Download luminovang/luminova 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/ */
luminovang / luminova example snippets
namespace App\Controllers\Http;
use Luminova\Base\Controller;
use Luminova\Attributes\Route;
use Luminova\Attributes\Prefix;
#[Prefix('/(:base)', exclude: ['api'])]
class MainController extends Controller
{
#[Route('/', methods: ['GET'])]
public function index(): int
{
return $this->view('index');
}
}
namespace App\Controllers\Http;
use Luminova\Base\Controller;
class MainController extends Controller
{
public function index(): int
{
return $this->view('index');
}
}