PHP Classes

lightweight MVC: Implements the MVC design pattern

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
StarStarStar 50%Total: 1,931 All time: 2,044 This week: 36Up
Version License PHP version Categories
lightweight-mvc 3.0GNU Lesser Genera...5.2PHP 5, Libraries, Design Patterns
Description 

Author

This package implements the MVC design pattern.

It provides based model, view and controller class that should be derived to implement new applications.

It can get data from the browser secured with addslashes to prevent uses exploiting the system though GET, POST or URL data.

It uses MySQLi for database access.

Picture of Martin Barker
  Performance   Level  
Name: Martin Barker <contact>
Classes: 14 packages by
Country: United Kingdom
Age: 35
All time rank: 29414 in United Kingdom
Week rank: 164 Up6 in United Kingdom Up
Innovation award
Innovation award
Nominee: 2x

  Files folder image Files (14)  
File Role Description
Files folder imageconfig (1 file)
Files folder imagecontrollers (2 files)
Files folder imagelibrary (1 file, 1 directory)
Files folder imagemodels (1 file, 1 directory)
Files folder imagepublic_html (2 files)
Files folder imageviews (1 file, 1 directory)
Accessible without login Plain text file .htaccess Data htaccess to check for file and rewrite to index.php if dose not exist
Accessible without login Plain text file bootstrap.php Example The bootstrap of the MVC this controls loading of controllers and calling Actions
Accessible without login Plain text file crond.php Appl. Searchs Controlers for cronAction and will run the method

  Files folder image Files (14)  /  config  
File Role Description
  Plain text file mysql.php Class Allows mysql to be configured and used for the Models

  Files folder image Files (14)  /  controllers  
File Role Description
  Plain text file controller.php Class This is base controller all other controllers should extend "Controller"
  Plain text file index.php Class Class "controllers_index" this is the default index controller

  Files folder image Files (14)  /  library  
File Role Description
Files folder imagemysql (1 file)
  Plain text file singleton.php Class abstract class for the Singleton implementation

  Files folder image Files (14)  /  library  /  mysql  
File Role Description
  Plain text file querybuild.php Class mysql query builder

  Files folder image Files (14)  /  models  
File Role Description
Files folder imageuser (1 file)
  Plain text file models.php Class this is the base model class all models must extend "Model"

  Files folder image Files (14)  /  models  /  user  
File Role Description
  Plain text file user.php Class a model

  Files folder image Files (14)  /  public_html  
File Role Description
  Accessible without login Plain text file cron.php Appl. allow testing of the cron system from the browser
  Accessible without login Plain text file index.php Example The loader this loads the MVC Bootstrap

  Files folder image Files (14)  /  views  
File Role Description
Files folder imageinclude (1 file)
  Accessible without login Plain text file index.phtml Example Views are loaded into the object calling them E.G controller_index

  Files folder image Files (14)  /  views  /  include  
File Role Description
  Accessible without login Plain text file inc.phtml Data example of how views can be used

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 Reuses Unique User Downloads Download Rankings  
 0%2
Total:1,931
This week:0
All time:2,044
This week:36Up
User Ratings User Comments (1)
 All time
Utility:75%StarStarStarStar
Consistency:62%StarStarStarStar
Documentation:-
Examples:62%StarStarStarStar
Tests:-
Videos:-
Overall:50%StarStarStar
Rank:2713
 
Good for beginners who want to understand MVC
13 years ago (John Ryder)
70%StarStarStarStar