Download

Github

git clone https://github.com/Usbac/wolff.git

Composer

composer create-project usbac/wolff

Let's build something together

                    
system > web.php
1 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.php
1 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.wlf
1 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

Latest releases

v4.1.0

  • 09/14/2021

    Added

    • Add optional parameter to middleware closures with the Wolff\Core\Http\Response object.

    Fixed

    • Fix environment override of some configuration values not working.

    v4.0.3

  • 08/03/2021

    Fixed

    • Fix template blocks not working when they are not followed by a whitespace character.

    v4.0.2

  • 08/02/2021

    Fixed

    • Fix given uncaught error when entering in a redirection.

    v4.0.1

  • 05/11/2021

    Fixed

    • Fix incompatibility of the count method of the Wolff\Core\DB class with some DB drivers.

    Requirements

    • PHP 7.1 or higher
    • Composer

    Contact

    Requests and questions can be send to the email [email protected], you will be contacted shortly.

    Contributing

    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.