PHPackages                             vtr/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. vtr/mvc

ActiveLibrary[Framework](/categories/framework)

vtr/mvc
=======

A simple php framework mvc

v1.4.1(10y ago)023MITPHPPHP &gt;=5.5

Since Sep 29Pushed 10y ago2 watchersCompare

[ Source](https://github.com/vitordm/VTRMVC)[ Packagist](https://packagist.org/packages/vtr/mvc)[ RSS](/packages/vtr-mvc/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (8)Used By (0)

VTRMVC
======

[](#vtrmvc)

- A simple PHP MVC Framework
- PHP &gt;= 5.5

### Updates

[](#updates)

VTRMVC 1.0 is CLOSE! Why ? I'm working with VTRMVC 2.0. We publish our new version soon.

### How to use ?

[](#how-to-use-)

It's simple:

First, use composer...

```
...
"require" {
  "vtr/mvc" : "dev-master"
}
```

```
$ composer install

```

Define a JSON configuration file for your application. (Take a look on file "start\_sample.json"). But be attention to principal nodes:

```
{
  ...
  "site_path" : ".",
  "tmp_path" : "./tmp",
  "log_path" : "./tmp/log",
  "mvc" : {
    "path" : "../app",
    ...
  }
  ...
}
```

Define a tree folder, where you will put your MVC Code, must be:

```
App Folder/
|
├── Controller/        # Controllers folder
|   ├── AppController.php
|   └── HomeController.php
├── Model/             # Models folder
|   ├── AppModel.php
|   └── HomeModel.php
└── View/              # Views folder
    └── Home/
        └── index.php

```

After this, you can call the application:

```
