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,073 All time: 3,468 This week: 673Up
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  
Name: Mostafa Abd-El-Hamid <contact>
Classes: 23 packages by
Country: Egypt Egypt
Age: 40
All time rank: 5595 in Egypt Egypt
Week rank: 66 Up1 in Egypt Egypt Up
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

  Files folder image Files (21)  /  Controllers  
File Role Description
Files folder imageDoctors (4 files)
  Plain text file Controller.php Class Class source
  Plain text file Doctors.php Class Example script
  Plain text file loginStart.php Class Class source
  Plain text file MainController.php Class Class source

  Files folder image Files (21)  /  Controllers  /  Doctors  
File Role Description
  Plain text file Add.php Class Example script
  Plain text file Delete.php Class Example script
  Plain text file Edit.php Class Example script
  Plain text file List.php Class Example script

  Files folder image Files (21)  /  libs  
File Role Description
Files folder imageDb (1 file)
Files folder imageMail (1 file)
  Plain text file Bootstrapper.php Class Class source
  Plain text file DbDefinitions.php Class Class source
  Plain text file SessionHandler.php Class Class source

  Files folder image Files (21)  /  libs  /  Db  
File Role Description
  Plain text file Connector.php Class Class source

  Files folder image Files (21)  /  libs  /  Mail  
File Role Description
  Plain text file Mailer.php Class Class source

  Files folder image Files (21)  /  Views  
File Role Description
Files folder imagecss (1 file)
Files folder imagejs (1 file)
  Plain text file Login.php Class Example script

  Files folder image Files (21)  /  Views  /  css  
File Role Description
  Accessible without login Plain text file style.css Data Auxiliary data

  Files folder image Files (21)  /  Views  /  js  
File Role Description
  Accessible without login Plain text file index.js Data 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,073
This week:0
All time:3,468
This week:673Up