PHP Classes

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

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 1,074 All time: 3,465 This week: 43Up
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: 5x

 

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 (21)  
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

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 100%
Total:1,074
This week:0
All time:3,465
This week:43Up