2017 © Pedro Pelรกez
 

library mvc

A simple php framework mvc

image

vtr/mvc

A simple php framework mvc

  • Sunday, April 3, 2016
  • by vitordm
  • Repository
  • 2 Watchers
  • 1 Stars
  • 23 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 0 % Grown

The README.md

VTRMVC

  • A simple PHP MVC Framework
  • PHP >= 5.5

Updates

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

How to use ?

It's simple:, (*2)

First, use composer..., (*3)

...
"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:, (*4)

{
  ...
  "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:, (*5)

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:, (*6)

<?php

include "../vendor/autoload.php"; // Composer file

try{

    $url = isset($_GET["_url"]) ? $_GET["_url"] : ""; // URL passing by .htaccess

    $app = new VTRMVC\Core\App();
    $app->start("../public/app.json", $url);


}catch (Exception $ex) {
    VTRMVC\Util\Util::varzx($ex->getMessage());
}

Do you need a sample ?

Please take a good look on "Sample" folder. You'll see how simple it is to do., (*7)

The Versions

03/04 2016

dev-master

9999999-dev

A simple php framework mvc

  Sources   Download

MIT

The Requires

 

by Vitor G. Isse de Oliveira

framework

03/04 2016

dev-developer

dev-developer

A simple php framework mvc

  Sources   Download

MIT

The Requires

 

by Vitor G. Isse de Oliveira

framework

08/01 2016

v1.4.1

1.4.1.0

A simple php framework mvc

  Sources   Download

MIT

The Requires

 

by Vitor G. Isse de Oliveira

framework

02/01 2016

v1.3

1.3.0.0

A simple php framework mvc

  Sources   Download

MIT

The Requires

 

by Vitor G. Isse de Oliveira

framework

02/01 2016

v1.4

1.4.0.0

A simple php framework mvc

  Sources   Download

MIT

The Requires

 

by Vitor G. Isse de Oliveira

framework

29/12 2015

v1.2

1.2.0.0

A simple php framework mvc

  Sources   Download

MIT

The Requires

 

by Vitor G. Isse de Oliveira

framework

23/12 2015

v1.1

1.1.0.0

A simple php framework mvc

  Sources   Download

MIT

The Requires

 

by Vitor G. Isse de Oliveira

framework

29/09 2015

v1.0

1.0.0.0

A simple php framework mvc

  Sources   Download

MIT

The Requires

 

by Vitor G. Isse de Oliveira

framework