PHPackages                             zutto/pandora-mvc - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. zutto/pandora-mvc

ActiveFramework[Framework](/categories/framework)

zutto/pandora-mvc
=================

Lightweight MVC

1.0(13y ago)043MITPHPPHP &gt;=5.4.0

Since Feb 25Pushed 11y ago1 watchersCompare

[ Source](https://github.com/rgantt/pandora-mvc)[ Packagist](https://packagist.org/packages/zutto/pandora-mvc)[ RSS](/packages/zutto-pandora-mvc/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Pandora
=======

[](#pandora)

Just another MVC framework
--------------------------

[](#just-another-mvc-framework)

===========

The goal: to create a lightweight framework that allows web entities to be rendered and served back to an HTTP client.

The result: Pandora, a small package that simplifies creation of dynamic web pages by assuming things about where your site's assets live.

### Set-up

[](#set-up)

Take a composer dependency on pandora-mvc:

```
{
    "require": {
        "zutto/pandora-mvc": "dev-master"
    }
}
```

### Configure

[](#configure)

Provide Pandora with the runtime configuration it needs in your index.php:

```
PageDispatcher::registerLoader( $your_autoloader_for_controllers );
PageDispatcher::registerLoader( $your_autoloader_for_models );

EnvironmentFactory::setConfigFile(dirname(__FILE__)."/conf/environment.json");

FrontController::render(DEFAULT_PAGE, DEFAULT_ACTION);
```

The 3 parts:

1. A classloader for your controllers (and models)
2. A path to your JSON configuration directives that will provide runtime config
3. A call to FrontController::render

### Serve

[](#serve)

Your controllers will simply be generic classes where each method is mapped to a page.

When a page is requested, the lifecycle looks like this:

1. The appropriate controller is loaded according to the autoloader you've configured
2. An instance of it is created and injected with a Request and Model objects
3. An appropriate view is loaded according to the Accept-Type of the request
4. The page method is called and its return value is exposed to the view
5. Viola!

### Example

[](#example)

Here's an example of a controller for an operation that gives a formatted date:

```
class TimeController {
    protected $request;

    public function __construct( Request $request ) {
        $this->request = $request;
    }

    public function format() {
        $fmt = $this->request->get('format', 'You must specify a date format');

        return array (
            'timestamp' => date($fmt)
        );
    }
}
```

If you've set up a configuration like the one in the section above, TimeController::format() will be called whenever someone sends a request to:

```
index.php?page=time&action=format

```

By accessing that URL, Pandora will execute the format method and try to load a view file in views/time/method.html.php--or method.json.php if the request specified application/json as the Accept-type.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4831d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/cdc664da0025e7ef05b6c2edd05391e903a6139afe693b23980d9024e93d6ca3?d=identicon)[gavinchi](/maintainers/gavinchi)

### Embed Badge

![Health badge](/badges/zutto-pandora-mvc/health.svg)

```
[![Health](https://phpackages.com/badges/zutto-pandora-mvc/health.svg)](https://phpackages.com/packages/zutto-pandora-mvc)
```

###  Alternatives

[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M532](/packages/laravel-passport)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

712181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)[laravel/pail

Easily delve into your Laravel application's log files directly from the command line.

91545.3M590](/packages/laravel-pail)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
