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