PHP Classes

PHP Very Simple MVC: Framework to route requests to controller classes

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 59 All time: 10,526 This week: 43Up
Version License PHP version Categories
php-very-simple-mvc 1.0MIT/X Consortium ...5HTTP, PHP 5, Libraries, Design Patterns
Description 

Author

This package provides a framework to route requests to controller classes.

It provides a base controller class to help load specific model classes and view scripts.

The package also provides an application class that can extract from the request URL the controller class name that should be loaded and called to handle the current request.

It can also load an error page script when the request URL does not pass the name of an existing controller class to handle the current request.

Picture of Muhammad Umer Farooq
Name: Muhammad Umer Farooq <contact>
Classes: 52 packages by
Country: Pakistan Pakistan
Innovation award
Innovation award
Nominee: 6x

Example

<?php

require_once "../app/init.php";
$app = new App();


Details

php-very-simple-mvc


  Files folder image Files (12)  
File Role Description
Files folder imageapp (2 files, 5 directories)
Files folder imagepublic (2 files)
Accessible without login Plain text file index.php Aux. Auxiliary script
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (12)  /  app  
File Role Description
Files folder imagecontrollers (1 file)
Files folder imageerrors (1 directory)
Files folder imagemodels (1 file)
Files folder imagesystem (2 files)
Files folder imagetheme (1 directory)
  Accessible without login Plain text file .htaccess Data Auxiliary data
  Accessible without login Plain text file init.php Aux. Auxiliary script

  Files folder image Files (12)  /  app  /  controllers  
File Role Description
  Plain text file home.php Class Class source

  Files folder image Files (12)  /  app  /  errors  
File Role Description
Files folder imagepages (1 file)

  Files folder image Files (12)  /  app  /  errors  /  pages  
File Role Description
  Accessible without login Plain text file index.php Aux. Auxiliary script

  Files folder image Files (12)  /  app  /  models  
File Role Description
  Plain text file home.php Class Class source

  Files folder image Files (12)  /  app  /  system  
File Role Description
  Plain text file App.php Class Class source
  Plain text file controller.php Class Class source

  Files folder image Files (12)  /  app  /  theme  
File Role Description
Files folder imagebasic (1 file)

  Files folder image Files (12)  /  app  /  theme  /  basic  
File Role Description
  Accessible without login Plain text file home.php Aux. Auxiliary script

  Files folder image Files (12)  /  public  
File Role Description
  Accessible without login Plain text file .htaccess Data Auxiliary data
  Accessible without login Plain text file index.php Example Example script

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:59
This week:0
All time:10,526
This week:43Up