2017 © Pedro Peláez
 

library mvc

Manage mvc calls

image

adara-php/mvc

Manage mvc calls

  • Wednesday, June 7, 2017
  • by fernandopetry
  • Repository
  • 1 Watchers
  • 0 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Pacote de gerenciamento do MVC do projeto ADARA

Usage 1

<?php
use \Adara\MVC\Uri\Parse;
use \Adara\MVC\Uri\Param;
use \Adara\MVC\Uri\GetByURI;

$uri = new GetByURI('router');
$param = new Param($uri);
$parse = new Parse($param);

$parse->getController(); // Controller
$parse->getAction(); // Action
$parse->getParams(); // Params

Usage 2 | Facade

<?php
use \Adara\MVC\Uri\UriFacade;

$facade = new UriFacade('router');
$facade->getController(); // Controller
$facade->getAction(); // Action
$facade->getParams(); // Params

Install composer

$ composer require adara-php/mvc

Usage ControllerFactory

<?php

use \Adara\MVC\Uri\UriFacade;

try {
    $factory = new \Adara\MVC\Controller\ControllerFactory(new UriFacade('router'),'Adara\MVC\Controller');
    $factory->factory();
}catch (Exception $e){
    echo $e->getMessage();
}

The Versions

07/06 2017

dev-master

9999999-dev

Manage mvc calls

  Sources   Download

BSD-3-Clause

The Requires

  • php >=7.0

 

The Development Requires

php mvc fernandopetry

07/06 2017

1.1

1.1.0.0

Manage mvc calls

  Sources   Download

BSD-3-Clause

The Requires

  • php >=7.0

 

The Development Requires

php mvc fernandopetry

07/06 2017

1.0

1.0.0.0

Manage mvc calls

  Sources   Download

BSD-3-Clause

The Requires

  • php >=7.0

 

The Development Requires

php mvc fernandopetry