Download

Github

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

Composer

composer create-project usbac/wolff

Let's build something together

                    
app > languages > en > home.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14
‹?php return [ 'title' => 'Wolff', 'meta' => 'Wolff - Framework', 'msg' => 'Small PHP framework' ];

Create a language file (Optional)

                    
app > controllers > home.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14
‹?php namespace Controller; use Wolff\Core\{Language, View}; class Home { public function index($req, $res) { $data = Language::get('home'); View::render('home', $data); } }

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> <p>{{ $msg }}</p> </body> </html>

Design the view

Latest releases

v3.0.2

  • 05/13/2020

    Changelog:

    • Fixed bug related to general routing.

    v3.0.1

  • 05/08/2020

    Changelog:

    • Added multibyte string support for most methods of the Wolff\Utils\Str class.

    v3.0.0

  • 05/01/2020

    Wolff improved

    v2.8.1

  • 04/16/2020

    Changelog:

    • Fixed bug related to the title function of the template engine.

    Requirements

    • PHP 7 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.