Download the PHP package fabiodoppio/mvc without Composer
On this page you can find all versions of the php package fabiodoppio/mvc. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fabiodoppio/mvc
More information about fabiodoppio/mvc
Files in fabiodoppio/mvc
Package mvc
Short Description Model View Controller (MVC) design pattern for simple web applications.
License MIT
Informations about the package mvc
MVC
Model View Controller (MVC) design pattern for simple web applications.
Features
-
Default Pages for Home, Login, Signup, Recovery, Verification, Account and 404-Errors: Supports simple customizations through template files (.tpl) similar to Smarty.
-
Caching-Engine: Pages are automatically cached for improved performance, reducing server load by serving cached content when appropriate.
-
User Roles: Supports the implementation of user roles, define and manage different access levels and permissions for users.
-
Account Recovery: Users can recover their accounts through a user-friendly recovery process, they can regain access to their accounts in case of forgotten passwords or other issues.
-
Account Verification: Includes a built-in function to verify Accounts via E-Mail, enhancing security and trustworthiness in user registration.
-
Security Mechanisms: The package implements modern security measures to protect against potential attacks. This includes cooldown periods for repeated incorrect or unauthorized inputs and the verification of action tokens to prevent malicious actions.
-
Multi Language Support
-
2-Factor Authentication
- More Features soon..
Preview
Installation
Official installation method is via composer and its packagist package fabiodoppio/mvc.
..or just copy the example directory and run:
SQL-Statements for your Database:
Your .htaccess schould look like this:
Usage
The simplest usage to create an App would be as follows in your index.php:
You can now log in at https://yourdomain/login
Username: admin Password: admin123
Don't forget to change your username and password!
Debug mode
index.php:
Adding Pages
index.php:
Working with Templates
You can overwrite templates by simply placing them into your views directory. In your template files, you can use simple Smarty code. For example to include a file:
..or to display a variable:
It's also allowed to use PHP code like this:
..or this:
If you want to output a translated text, you can write your texts like this:
or
(But don't forget to update your language files in your locale directory!)
Detailed documentation will coming soon..