PHP Classes

Pure MVC PHP Standard Framework: Framework that implements the MVC design pattern

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: 238 All time: 8,055 This week: 560Up
Version License PHP version Categories
puremvc-php-standard 1.0.0GNU General Publi...5.6PHP 5, Design Patterns
Description 

Authors

Cliff Hall
Hasan Otuome
Michael Beck


Contributor

This package is a framework that implements the MVC design pattern.

It provides base classes that implement common functionality usually necessary in PHP applications like model, view and controller base classes, as well classes that implement other well known design patterns like facade, mediator, observer and proxy.

Picture of Michael Beck
Name: Michael Beck <contact>
Classes: 6 packages by
Country: United States United States
Innovation award
Innovation award
Nominee: 4x

Winner: 1x

 

Example

<?php
/**
 * PureMVC PHP Basic Demo
 * PureMVC Port to PHP originally translated by Asbjørn Sloth Tønnesen
 *
 * @author Omar Gonzalez :: omar@almerblank.com
 * @author Hasan Otuome :: hasan@almerblank.com
 *
 * Created on Sep 24, 2008
 * PureMVC - Copyright(c) 2006-2008 Futurescale, Inc., Some rights reserved.
 * Your reuse is governed by the Creative Commons Attribution 3.0 Unported License
 */

use puremvc\php\demos\basic;

require
__DIR__ . '/puremvc_autoloader.php';

// name of file user browsed to
$filename = $_SERVER[ 'PHP_SELF' ];

// css file name from css zen garden styles click
if (isset( $_GET[ 'c' ] ))
{
   
$cssName = $_GET[ 'c' ];
}
else
{
   
$cssName = 'default';
}

function
html_debug( $stack )
{
    print(
$stack . '<br/>' );
}

// start php application
$basicDemo = new basic\BasicDemo();
// start up the view by sending in the variables.
$basicDemo->startView( $filename, $cssName );


Details

PureMVC PHP Standard Framework

PureMVC is a lightweight framework for creating applications based upon the classic Model-View-Controller design meta-pattern. This is a PHP port of the AS3 reference implementation of the Standard Version.

The distribution comes with a built in server-side demo: Zen Garden.

Demos

Status

Production - Version 1.2.2

Platforms / Technologies

License

  • PureMVC Standard Framework for PHP (Ported) - Copyright © 2009 Hasan Otuome
  • PureMVC - Copyright © 2006-2018 Futurescale, Inc.
  • All rights reserved.
  • Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

    * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Futurescale, Inc., PureMVC.org, nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


  Files folder image Files (444)  
File Role Description
Files folder imagedocs (39 files, 13 directories)
Files folder imageimages (16 files, 11 directories)
Files folder imageorg (1 directory)
Files folder imagetests (4 files, 3 directories)
Accessible without login Plain text file composer.json 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 NOTES Data Auxiliary data
Accessible without login Plain text file puremvc_autoloader.php Aux. Auxiliary script
Accessible without login Plain text file README.md Doc. Documentation
Accessible without login Plain text file VERSION 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:238
This week:0
All time:8,055
This week:560Up