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.2.2

  • 10/05/2020

    Changelog:

    • Fixed bug related to the fast query methods of the Wolff\Core\DB class not working with conditions.

    v3.2.1

  • 09/11/2020

    Changelog:

    • Fixed bug related to the init method of the Wolff\Core\Config class not throwing the right exception.
    • Fixed bug related to the getAllowedIPs and removeAllowedIP methods of the Wolff\Core\Maintenance class not throwing the right exception.

    v3.2.0

  • 08/21/2020

    Changelog:

    • Added support for view files with php and html extensions.
    • Added relativePath function to the standard library.

    v3.1.0

  • 07/05/2020

    Changelog:

    • Added port option to the database constructor.
    • Removed default database encoding.
    • Fixed bug related to fast queries conditions.

    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.