#What is Simple MVC Framework?
Simple MVC Framework (SMVC) is a PHP 5.5 MVC system. It's designed to be lightweight and modular, allowing developers to build better and easy to maintain code with PHP.
The base framework comes with a range of helper classes.
This is a customized version of the SMVC v2.2 which pulls out publicly-accessible files (js/css/img files) from the app
folder and places them in a separate folder. This setup enables more flexibility in organizing the application folder structure (i.e. placing the app
and vendor
folders outside the web root becomes easier now).
Full docs & tutorials are available at simplemvcframework.com (although this is a customized version the documentation of the original one is still applicable).
The framework requirements are limited:
- Apache Web Server or equivalent with mod rewrite support.
- PHP 5.5 or greater is required.
Although a database is not required, if a database is to be used the system is designed to work with a MySQL database. The framework can be changed to work with another database type.
- Download the framework.
- Unzip the package.
- Upload the framework files to your server (only the contents of the
public
folder are required to be in your web root). - Open
app/Core/config.php
, set your base path (it is the path from the web root to the folder in which theindex.php
file resides), and database credentials (if a database is needed). - Edit
.htaccess
file (located in your public folder) and save the base path (it is the path from the web root to the folder in which theindex.php
file resides). - If you have done the above steps correctly, you should have a working application now. Start working with your application by setting up your routes at
app/Core/routes.php
.