PHP Classes
elePHPant
Icontem

PHP 7 MVC: Framework that uses MVC design pattern under PHP 7

Recommend this page to a friend!
  Info   View files View files (21)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2015-11-20 (11 months ago) RSS 2.0 feedNot enough user ratingsTotal: 796 This week: 7All time: 4,123 This week: 145Up
Version License PHP version Categories
php7mvc 1.0MIT/X Consortium ...7.0Libraries, Design Patterns, PHP 7
Description Author

This package is a framework that uses MVC design pattern under PHP 7.

It provides a set of classes that implement the model view controller design pattern, as well other general purpose classes for Web application development.

Currently it provides a base controller to dispatch requests to other controllers, a session handler, a database connector and mailer class.

Picture of Mostafa Abd-El-Hamid
  Performance   Level  
Innovation award
Innovation award
Nominee: 2x

Details

MVC

Manon Systems MVC Framework

To create a new Controller

Create a new PHP Class and name it exactly as the route will be.

Example: If you will create a dashboard and the route will be Dashboard, then the file will be Dashboard.php

Into Dashboard.php you need to use the following namespaces:

\Session\Handler To handle the Session library \Views\Main To handle the Views \Db\Connect To handle the Database library

Create a class named Dashboard exactly like the same file name

Create a public static magic function called __init() and you can assign a retun type fot it like:

__init() : int __init() : string __init() : boolean __init() : float

etcetera...

Using this function, you can use your own custom functions from within the class.

Then, you need to edit your DB Definitions using the file DbDefinitions into the libs folder.

  Files folder image Files  
File Role Description
Files folder imageControllers (4 files, 1 directory)
Files folder imagelibs (3 files, 2 directories)
Files folder imageViews (1 file, 2 directories)
Accessible without login Plain text file .gitignore Data Auxiliary data
Accessible without login Plain text file .htaccess Data Auxiliary data
Accessible without login Plain text file index.php Example Class source
Accessible without login Plain text file LICENSE Lic. Auxiliary data
Accessible without login Plain text file README.md Doc. Auxiliary data

 Version Control Unique User Downloads Download Rankings  
 100%
Total:796
This week:7
All time:4,123
This week:145Up