PHP Classes

Amp Frame: MVC framework for developing Web applications

Recommend this page to a friend!
  Info   View files Example   View files View files (113)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 166 This week: 1All time: 8,885 This week: 571Up
Version License PHP version Categories
ampframe 1.1GNU General Publi...5.6PHP 5, Libraries, Design Patterns
Description 

Author

This package implements a MVC framework for developing Web applications. It provides:

- Routers allow you to use the front end controller to manage web pages, APIs, RSS feeds, etc.
- Protected objects use extended classes so that you can add your own functionality without the worry of upgrading.
- Support for traits to use as method toolboxes for all objects.
- Models for MySQLi object oriented and procedural methods included for database management.
- Views to deliver web pages through a template system included. Template system supports multiple routes, children and skins.

It also supports Bootstrap 4 so that you can deliver responsive content, as well clean, pretty, restful url's included through the front end controller without using mod-rewrite.

Picture of Dave Smith
  Performance   Level  
Name: Dave Smith is available for providing paid consulting. Contact Dave Smith .
Classes: 51 packages by
Country: United States United States
Age: 58
All time rank: 618 in United States United States
Week rank: 20 Up2 in United States United States Up
Innovation award
Innovation award
Nominee: 32x

Winner: 7x

Recommendations

Website structure
I need a basis structure to build my website

Example

<?php
/*
!!!THIS FILE IS NOT SAFE TO MODIFY!!!

AMP Frame ver 1.0.0
index.php
Front End Controller

Copyright (C) 2018 AMP Apps www.ampapps.com

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

//*allow files to be included*//
define('AFALLOW', true);

//*include pre process scripting*//
if( is_file('preproc.php') ){
    include_once(
'preproc.php');
}

//*define the standard script root*//
if( !defined('AFROOT') ){
   
define('AFROOT', str_replace("\\", '/', __DIR__.'/') );
}

//*handle configuration*//
include_once(AFROOT.'config/config.php');

//*start script initialization*//
$initFile = AFROOT.'config/init.php';
if(
is_file($initFile) ){
    include_once(
$initFile);
}else{
   
trigger_error('Initialization file <em>'.$initFile.'</em> not found<br>Check that the path is valid');
    die();
}

//*include post process scripting*//
if( is_file('postproc.php') ){
    include_once(
'postproc.php');
}

//*deliver the view*//
$afView->deliver();
?>


Details

ampframe

PHP based framework using the Model-View-Controller architecture.

What is it?

AMP Frame is a core framework built for developers and designers to quickly launch web pages and services. It seperates the developers coding task on the back end from the designers display task on the front end with a controller driven templating system.

How does it work?

It is built using the model-view-controller (MVC) pattern where a controller manipulates a model which provides data for a view to deliver. It also contains a router so that different routes can be triggered from different requests and multiple models can be loaded as needed.

What can it do?

AMP Frame can do anything a model can be developed for. It ships with a page model and view for displaying web pages, two mySQLi models (procedural and object methods) for handling database operations, an error model for error handling and a model to manage clean URL's. While those models cover common uses, they really only scratch the surface of what is possible.

Is it easy to use?

When developing anything, you have to weigh the ease of use against the performance cost. AMP Frame was developed with performance and flexibility at the top of the requirements so it is not a plug and play system where you have to work around what you get. Anyone with a working knowledge of PHP and HTML should find it easy to work with, especially to implement the capabilities of models and systems already developed.

Models are currently being developed and can be found at Amp Apps


  Files folder image Files  
File Role Description
Files folder imageconfig (4 files)
Files folder imagecontrol (1 file, 3 directories)
Files folder imagedocs (4 files)
Files folder imagemodel (12 files)
Files folder imageresource (1 file)
Files folder imageroute (5 files)
Files folder imagetemplate (1 file, 3 directories)
Files folder imagetrait (2 files)
Files folder imageview (3 files)
Accessible without login Image file favicon.ico Data Auxiliary data
Accessible without login Plain text file index.php Example Example script
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file postproc.php Example Example script
Accessible without login Plain text file preproc.php Aux. Auxiliary script
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  config  
File Role Description
  Accessible without login Plain text file config.php Conf. Configuration script
  Accessible without login Plain text file default.php Aux. Auxiliary script
  Accessible without login Plain text file index.php Aux. Auxiliary script
  Plain text file init.php Class Class source

  Files folder image Files  /  control  
File Role Description
Files folder imagehelp (15 files)
Files folder imagepage (6 files)
Files folder imageproject (3 files)
  Accessible without login Plain text file index.php Aux. Auxiliary script

  Files folder image Files  /  control  /  help  
File Role Description
  Plain text file afc.cleanurl.php Class Class source
  Plain text file afc.config.php Class Class source
  Plain text file afc.control.php Class Class source
  Plain text file afc.empty.php Class Class source
  Plain text file afc.flow.php Class Class source
  Plain text file afc.model.php Class Class source
  Plain text file afc.mvcr.php Class Class source
  Plain text file afc.oview.php Class Class source
  Plain text file afc.result.php Class Class source
  Plain text file afc.route.php Class Class source
  Plain text file afc.routing.php Class Class source
  Plain text file afc.start.php Class Class source
  Plain text file afc.tpl.php Class Class source
  Plain text file afc.view.php Class Class source
  Accessible without login Plain text file index.php Aux. Auxiliary script

  Files folder image Files  /  control  /  page  
File Role Description
  Plain text file afc.empty.php Class Class source
  Plain text file afc.environ.php Class Class source
  Plain text file afc.home.php Class Class source
  Plain text file afc.skin.php Class Class source
  Plain text file afc.test.php Class Class source
  Accessible without login Plain text file index.php Aux. Auxiliary script

  Files folder image Files  /  control  /  project  
File Role Description
  Plain text file afc.empty.php Class Class source
  Plain text file afc.home.php Class Class source
  Accessible without login Plain text file index.php Aux. Auxiliary script

  Files folder image Files  /  docs  
File Role Description
  Accessible without login Plain text file changelog.txt Doc. Documentation
  Accessible without login Plain text file index.php Aux. Auxiliary script
  Accessible without login Plain text file license.txt Doc. Documentation
  Accessible without login Plain text file setup.txt Doc. Documentation

  Files folder image Files  /  model  
File Role Description
  Plain text file afm.cleanurl.php Class Class source
  Plain text file afm.error.e.php Class Class source
  Plain text file afm.error.php Class Class source
  Plain text file afm.mysqlio.e.php Class Class source
  Plain text file afm.mysqlio.php Class Class source
  Plain text file afm.mysqlip.e.php Class Class source
  Plain text file afm.mysqlip.php Class Class source
  Plain text file afm.page.e.php Class Class source
  Plain text file afm.page.php Class Class source
  Plain text file afm.routing.e.php Class Class source
  Plain text file afm.routing.php Class Class source
  Accessible without login Plain text file index.php Aux. Auxiliary script

  Files folder image Files  /  resource  
File Role Description
  Accessible without login Plain text file index.php Aux. Auxiliary script

  Files folder image Files  /  route  
File Role Description
  Accessible without login Plain text file help.php Example Example script
  Accessible without login Plain text file index.php Aux. Auxiliary script
  Accessible without login Plain text file page.php Example Example script
  Accessible without login Plain text file project.php Example Example script
  Accessible without login Plain text file trigger.php Aux. Auxiliary script

  Files folder image Files  /  template  
File Role Description
Files folder imagedefault (1 file, 4 directories)
Files folder imagehelp (1 file, 4 directories)
Files folder imageproject (1 file, 4 directories)
  Accessible without login Plain text file index.php Aux. Auxiliary script

  Files folder image Files  /  template  /  default  
File Role Description
Files folder imagecontent (5 files, 1 directory)
Files folder imagecss (2 files)
Files folder imagejs (1 file)
Files folder imageskin (4 files)
  Accessible without login Plain text file index.php Aux. Auxiliary script

  Files folder image Files  /  template  /  default  /  content  
File Role Description
Files folder imagechild (2 files)
  Accessible without login Plain text file empty.php Aux. Auxiliary script
  Plain text file environ.php Class Class source
  Accessible without login Plain text file home.php Aux. Auxiliary script
  Accessible without login Plain text file index.php Aux. Auxiliary script
  Accessible without login Plain text file test.php Aux. Auxiliary script

  Files folder image Files  /  template  /  default  /  content  /  child  
File Role Description
  Accessible without login Plain text file index.php Aux. Auxiliary script
  Accessible without login Plain text file test.php Example Example script

  Files folder image Files  /  template  /  default  /  css  
File Role Description
  Accessible without login Plain text file index.php Aux. Auxiliary script
  Accessible without login Plain text file style.css Data Auxiliary data

  Files folder image Files  /  template  /  default  /  js  
File Role Description
  Accessible without login Plain text file index.php Aux. Auxiliary script

  Files folder image Files  /  template  /  default  /  skin  
File Role Description
  Accessible without login Plain text file dark.php Example Example script
  Accessible without login Plain text file index.php Aux. Auxiliary script
  Accessible without login Plain text file light.php Example Example script
  Accessible without login Plain text file template.php Example Example script

  Files folder image Files  /  template  /  help  
File Role Description
Files folder imagecontent (15 files, 1 directory)
Files folder imagecss (2 files)
Files folder imagejs (1 file)
Files folder imageskin (2 files)
  Accessible without login Plain text file index.php Aux. Auxiliary script

  Files folder image Files  /  template  /  help  /  content  
File Role Description
Files folder imagechild (1 file)
  Accessible without login Plain text file cleanurl.php Aux. Auxiliary script
  Accessible without login Plain text file config.php Aux. Auxiliary script
  Accessible without login Plain text file control.php Aux. Auxiliary script
  Accessible without login Plain text file empty.php Aux. Auxiliary script
  Accessible without login Plain text file flow.php Aux. Auxiliary script
  Accessible without login Plain text file index.php Aux. Auxiliary script
  Accessible without login Plain text file model.php Aux. Auxiliary script
  Accessible without login Plain text file mvcr.php Aux. Auxiliary script
  Accessible without login Plain text file oview.php Aux. Auxiliary script
  Accessible without login Plain text file result.php Aux. Auxiliary script
  Accessible without login Plain text file route.php Aux. Auxiliary script
  Accessible without login Plain text file routing.php Aux. Auxiliary script
  Accessible without login Plain text file start.php Aux. Auxiliary script
  Accessible without login Plain text file tpl.php Aux. Auxiliary script
  Accessible without login Plain text file view.php Aux. Auxiliary script

  Files folder image Files  /  template  /  help  /  content  /  child  
File Role Description
  Accessible without login Plain text file index.php Aux. Auxiliary script

  Files folder image Files  /  template  /  help  /  css  
File Role Description
  Accessible without login Plain text file index.php Aux. Auxiliary script
  Accessible without login Plain text file style.css Data Auxiliary data

  Files folder image Files  /  template  /  help  /  js  
File Role Description
  Accessible without login Plain text file index.php Aux. Auxiliary script

  Files folder image Files  /  template  /  help  /  skin  
File Role Description
  Accessible without login Plain text file index.php Aux. Auxiliary script
  Accessible without login Plain text file template.php Example Example script

  Files folder image Files  /  template  /  project  
File Role Description
Files folder imagecontent (5 files, 1 directory)
Files folder imagecss (2 files)
Files folder imagejs (1 file)
Files folder imageskin (2 files)
  Accessible without login Plain text file index.php Aux. Auxiliary script

  Files folder image Files  /  template  /  project  /  content  
File Role Description
Files folder imagechild (2 files)
  Accessible without login Plain text file about.php Aux. Auxiliary script
  Accessible without login Plain text file blog.php Example Example script
  Accessible without login Plain text file empty.php Aux. Auxiliary script
  Accessible without login Plain text file home.php Example Example script
  Accessible without login Plain text file index.php Aux. Auxiliary script

  Files folder image Files  /  template  /  project  /  content  /  child  
File Role Description
  Accessible without login Plain text file about.php Aux. Auxiliary script
  Accessible without login Plain text file index.php Aux. Auxiliary script

  Files folder image Files  /  template  /  project  /  css  
File Role Description
  Accessible without login Plain text file index.php Aux. Auxiliary script
  Accessible without login Plain text file style.css Data Auxiliary data

  Files folder image Files  /  template  /  project  /  js  
File Role Description
  Accessible without login Plain text file index.php Aux. Auxiliary script

  Files folder image Files  /  template  /  project  /  skin  
File Role Description
  Accessible without login Plain text file index.php Aux. Auxiliary script
  Accessible without login Plain text file template.php Example Example script

  Files folder image Files  /  trait  
File Role Description
  Plain text file aft.toolbox.php Class Class source
  Accessible without login Plain text file index.php Aux. Auxiliary script

  Files folder image Files  /  view  
File Role Description
  Plain text file afv.page.e.php Class Class source
  Plain text file afv.page.php Class Class source
  Accessible without login Plain text file index.php Aux. Auxiliary script

 Version Control Unique User Downloads Download Rankings  
 100%
Total:166
This week:1
All time:8,885
This week:571Up