Ridiculously small PHP framework.
Wolff is a ridiculously small and lightweight PHP framework.
It is intended for those who want to build lightweight websites without starting from scratch or dealing with large frameworks.
Wolff is small, fast, scalable and easy. The perfect solution for building small and medium-sized web applications.
Note: The core code of the framework is available at Wolff-framework.
Clean: The routes system allows you to have clean and friendly URLs, and the template system makes the php code cleaner while separating the logic from the view.
Dynamic: You can work however you want without strictly following the Wolff design or patterns like the MVC.
Extensible: Take advantage of the custom middlewares, functions and templates you can make in Wolff to expand your page.
Fast: Due to its small size and simplicity, you don’t have to worry about loading times or resource usage.
Simple: It’s not only small, but simple as well; with a clean documentation and an easy way to use.
Database abstraction layer: Which simplifies the process of running queries and includes useful functions.
DI Container: For managing class dependencies and performing DI.
Language system: For managing multiple languages easily and quickly.
Middleware system: Which gives you more control over your requests/responses.
Routing system: Have clean URLs, make redirections and block certain pages recursively.
Standard library: With numerous incredible functions related to strings, numbers, debugging and arrays.
Template engine: Which you can use to write cleaner and safer code in your views while avoiding things like the php tags.
PHP version 7.0 or higher
You must have composer in your system for installing Wolff, once you have it.
Open your favorite terminal, move to the folder where you want Wolff to be installed and run the following command:
composer create-project usbac/wolff
This will download the whole project with everything ready to run (including an example page)!
You can see more information about the installation process in the Wiki - install page.
First you must have PHPUnit installed, once you have it.
Open your favorite terminal, move to your wolff project location and run the following command with high privileges (sudo):
Running the command with high privileges is required since some files will be created during the testing process.
First time using it? Read the Wiki.
Want to create a route/page? Read the Route page.
Want to use the database or run queries? Read the DB Page.
Want to use the container? Read the Container Page.
Any contribution or support to this project in the form of a pull request or message will be highly appreciated.
Don't be shy :)
Wolff is open-source software licensed under the MIT license.