PHP code example of mochrira / selvi-framework
1. Go to this page and download the library: Download mochrira/selvi-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/ */
mochrira / selvi-framework example snippets
namespace App\Controllers;
use Selvi\Controller;
class HomeController extends Controller {
function __construct() {
parent::__construct();
}
function index() {
return response('Welcome to Selvi Framework');
}
}
lvi\Route;
Route::get('/', 'HomeController@index');
Selvi\Framework::run();