https://github.com/pmvc-plugin/controller
PMVC Controller
https://github.com/pmvc-plugin/controller
pmvc pmvc-guid
Last synced: 2 months ago
JSON representation
PMVC Controller
- Host: GitHub
- URL: https://github.com/pmvc-plugin/controller
- Owner: pmvc-plugin
- Created: 2016-04-16T12:31:30.000Z (about 10 years ago)
- Default Branch: main
- Last Pushed: 2026-03-22T09:02:27.000Z (3 months ago)
- Last Synced: 2026-03-22T21:30:42.431Z (3 months ago)
- Topics: pmvc, pmvc-guid
- Language: PHP
- Homepage: https://github.com/pmvc/pmvc
- Size: 214 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://packagist.org/packages/pmvc-plugin/controller)
[](https://packagist.org/packages/pmvc-plugin/controller)
[](https://circleci.com/gh/pmvc-plugin/controller/tree/main)
[](https://coveralls.io/github/pmvc-plugin/controller?branch=main)
[](https://packagist.org/packages/pmvc-plugin/controller)
[](https://packagist.org/packages/pmvc-plugin/controller)
PMVC Controller
===============
* A simple MVC for unidirectional dataflow architecture.
*
* More information https://github.com/pmvc/pmvc
## Explain flow
controller -> plugapp -> process -> execute -> processForm -> _processValidate -> _processAction -> processForward -> _finish
## Explain App Folder
### Folders hierarchy
```
- Site *Folder*
-- Apps *Folder*
--- App
```
### 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
* View
* view_engine_[app]=[html|json|react|...]
* Template
* template_dir_[app]=[forder path]
## Install with Composer
CLICK TO SEE
### 1. Download composer
* mkdir test_folder
* curl -sS https://getcomposer.org/installer | php
### 2. Install by composer.json or use command-line directly
#### 2.1 Install by composer.json
* vim composer.json
```
{
"require": {
"pmvc-plugin/controller": "dev-main"
}
}
```
* php composer.phar install
#### 2.2 Or use composer command-line
* php composer.phar require pmvc-plugin/controller
or
* composer require pmvc-plugin/controller