PHPackages                             pmvc-plugin/controller - 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. pmvc-plugin/controller

ActiveLibrary[Framework](/categories/framework)

pmvc-plugin/controller
======================

PMVC Controller

0.11.1(2y ago)09.2k—3%8MITPHP

Since Jan 9Pushed 2y ago1 watchersCompare

[ Source](https://github.com/pmvc-plugin/controller)[ Packagist](https://packagist.org/packages/pmvc-plugin/controller)[ Docs](https://github.com/pmvc/pmvc)[ RSS](/packages/pmvc-plugin-controller/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (4)Versions (16)Used By (8)

[![Latest Stable Version](https://camo.githubusercontent.com/e55cc4ca028d2d3f8b5b12d49464b372a494213c1471ba10f374a7b7c66721a8/68747470733a2f2f706f7365722e707567782e6f72672f706d76632d706c7567696e2f636f6e74726f6c6c65722f762f737461626c65)](https://packagist.org/packages/pmvc-plugin/controller)[![Latest Unstable Version](https://camo.githubusercontent.com/8d297620528700e5f5b1305fe4bc1fc3b21811b3c8a719bd7d28c92e1395c0eb/68747470733a2f2f706f7365722e707567782e6f72672f706d76632d706c7567696e2f636f6e74726f6c6c65722f762f756e737461626c65)](https://packagist.org/packages/pmvc-plugin/controller)[![CircleCI](https://camo.githubusercontent.com/c08d8663e17ce985db965699e35c88cb1826d3aff55fff0672e7e3e8db18cf14/68747470733a2f2f636972636c6563692e636f6d2f67682f706d76632d706c7567696e2f636f6e74726f6c6c65722f747265652f6d61737465722e7376673f7374796c653d737667)](https://circleci.com/gh/pmvc-plugin/controller/tree/master)[![StyleCI](https://camo.githubusercontent.com/45945b95aab7a61ad4c9e8abe6c38ecffdfe8aba0857caaf07f50f13277ec07a/68747470733a2f2f7374796c6563692e696f2f7265706f732f35363338323536382f736869656c64)](https://styleci.io/repos/56382568)[![Coverage Status](https://camo.githubusercontent.com/8b0f47b60de925d2213548896d3ba805dcd7ab24b423c8ae75dbd2ac76a838c8/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f706d76632d706c7567696e2f636f6e74726f6c6c65722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/pmvc-plugin/controller?branch=master)[![License](https://camo.githubusercontent.com/d70205a207630e915cf2572496c97951ee3b67f5d33c2e030136c9e6c9a6ce4b/68747470733a2f2f706f7365722e707567782e6f72672f706d76632d706c7567696e2f636f6e74726f6c6c65722f6c6963656e7365)](https://packagist.org/packages/pmvc-plugin/controller)[![Total Downloads](https://camo.githubusercontent.com/645d8e6a9fe713654117c17577c7b5cdccd8536e2063eb2c0b54c61ca4bda7d6/68747470733a2f2f706f7365722e707567782e6f72672f706d76632d706c7567696e2f636f6e74726f6c6c65722f646f776e6c6f616473)](https://packagist.org/packages/pmvc-plugin/controller)

PMVC Controller
===============

[](#pmvc-controller)

- A simple MVC for unidirectional dataflow architecture.
- [![](https://raw.githubusercontent.com/pmvc/pmvc.github.io/master/flow5.png)](https://raw.githubusercontent.com/pmvc/pmvc.github.io/master/flow5.png)
- More information

Explain flow
------------

[](#explain-flow)

controller -&gt; plugapp -&gt; process -&gt; execute -&gt; processForm -&gt; \_processValidate -&gt; \_processAction -&gt; processForward -&gt; \_finish

Explain App Folder
------------------

[](#explain-app-folder)

### Folders hierarchy

[](#folders-hierarchy)

```
- Site *Folder*
-- Apps *Folder*
--- App

```

### How to get (folders)?

[](#how-to-get-folders)

- Site *Folder*

```
\PMVC\plug('controller')->getAppsParent()

```

- Apps *Folder*

```
\PMVC\plug('controller')->getAppsFolder()

```

- App

```
\PMVC\plug('controller')->getApp()

```

APP customize view and template
-------------------------------

[](#app-customize-view-and-template)

- View
    - view\_engine\_\[app\]=\[html|json|react|...\]
- Template
    - template\_dir\_\[app\]=\[forder path\]

Install with Composer
---------------------

[](#install-with-composer)

CLICK TO SEE### 1. Download composer

[](#1-download-composer)

- mkdir test\_folder
- curl -sS  | php

### 2. Install by composer.json or use command-line directly

[](#2-install-by-composerjson-or-use-command-line-directly)

#### 2.1 Install by composer.json

[](#21-install-by-composerjson)

- vim composer.json

```
{
    "require": {
        "pmvc-plugin/controller": "dev-master"
    }
}

```

- php composer.phar install

#### 2.2 Or use composer command-line

[](#22-or-use-composer-command-line)

- php composer.phar require pmvc-plugin/controller

or

- composer require pmvc-plugin/controller

###  Health Score

33

—

LowBetter than 74% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 98.9% of commits — single point of failure

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

Every ~187 days

Recently: every ~212 days

Total

14

Last Release

973d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6f593111e77142a10224458b0436e6b2d6f3e537f924c03130f0208bd3c4477f?d=identicon)[HillLiu](/maintainers/HillLiu)

---

Top Contributors

[![HillLiu](https://avatars.githubusercontent.com/u/1877738?v=4)](https://github.com/HillLiu "HillLiu (280 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (3 commits)")

---

Tags

pmvcpmvc-guidplug-inpmvccontroller

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/pmvc-plugin-controller/health.svg)

```
[![Health](https://phpackages.com/badges/pmvc-plugin-controller/health.svg)](https://phpackages.com/packages/pmvc-plugin-controller)
```

###  Alternatives

[htmlburger/wpemerge

A micro framework which modernizes WordPress as a CMS development by providing tools to implement MVC and more.

456137.8k8](/packages/htmlburger-wpemerge)[extism/extism

Make your software programmable. Run WebAssembly extensions in your app using the first off-the-shelf, universal plug-in system.

303.0k1](/packages/extism-extism)

PHPackages © 2026

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