rseon / mallow
Another PHP framework
Installs: 11
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
pkg:composer/rseon/mallow
Requires
- php: ^7.1
- maximebf/debugbar: ^1.16
This package is auto-updated.
Last update: 2025-12-14 04:20:26 UTC
README
A mix between old-school and standardized framework.
Features
- MVC pattern
- Localization (by section / with multiple files)
- Router with localized routes and regex (be careful to sort them correctly !)
- Database abstraction layer with PDO
- Mini ORM (models are objects)
- Authentication
- Flash messages and input sessions
- Registry to share data
- Dotenv file for sensitive configuration (to not commit !)
- CSRF protection
- Console
- Debugbar
Installation
Mallow utilizes Composer to manage its dependencies. So, before using this framework, make sure you have Composer installed on your machine.
- Run
composer create-project rseon/mallow my-project - Copy
.env.exampleto.env(if.envfile was not created) - Generate your
APP_KEYrunningphp console keygenand paste the result in your.envfile
Front-end
To manage assets in /resources/assets Mallow uses the awesome Laravel Mix which is
an excellent Webpack wrapper.
After installation run npm install && npm run dev
The framework includes jQuery, Bootstrap and FontAwesome.
Database
To test the User model, you can create the users table in your database :
CREATE TABLE IF NOT EXISTS `users` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `email` varchar(255) NOT NULL, `password` varchar(255) NOT NULL, `created_at` datetime DEFAULT NULL, `updated_at` datetime DEFAULT NULL, `deleted_at` datetime DEFAULT NULL, PRIMARY KEY (`id`), UNIQUE KEY `email` (`email`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
Minimal installation
The following files are required to make the framework work.
The others are here for testing purpose and can be deleted.
/app/Controller/IndexController.php: your homepage (called by theindexroute)/app/Models: folder required but files into it are optional/app/Views/layouts/app.php: main layout/app/Views/index.php: homepage/app/config.php: app configuration/app/routes.php: routes/resources/langs: folder required but files into it are optional/src: the core files/.env: sensitive data (don't commit them !)