git clone https://github.com/Usbac/wolff.git
composer create-project usbac/wolff
system > web.php1 2 3 4 5 6 7 8 9 10 11 12 13 14‹?php use Wolff\Core\Route; Route::any('/', [ Controller\Home::class, 'index', ]);
Create a route
app > controllers > Home.php1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16‹?php namespace Controller; use Wolff\Core\View; class Home { public function index($req, $res) { View::render('home', [ 'meta' => 'My webpage', 'title' => 'Hello world', ]); } }
Create a controller
app > views > home.wlf1 2 3 4 5 6 7 8 9 10 11 12 13 14<!DOCTYPE html> <head> <title>{{ $meta }}</title> </head> <body> <h2>{{ $title }}</h2> </body> </html>
Design the view
Wolff\Core\Http\Response
object.count
method of the Wolff\Core\DB
class with some DB drivers.Requests and questions can be send to the email [email protected], you will be contacted shortly.
Any contribution or support to this project in the form of a pull request will be highly appreciated. This can be done in both of the official repositories wolff and wolff-framework.