PHP Classes

File: exemplo/rotas.php

Recommend this page to a friend!
  Classes of Mestre da Info   MI Router   exemplo/rotas.php   Download  
File: exemplo/rotas.php
Role: Example script
Content type: text/plain
Description: Example script
Class: MI Router
Split the request URL simplify routing the request
Author: By
Last change:
Date: 10 days ago
Size: 409 bytes
 

Contents

Class file image Download
<?php

// Copyright (C) 2025 Murilo Gomes Julio
// SPDX-License-Identifier: MIT

// Mestre da Info
// Site: https://www.mestredainfo.com.br

use MIRouter\mirouter;

include_once(
dirname(__FILE__, 2) . '/vendor/autoload.php');

$rt = new mirouter();

echo
$rt->getPrimeiraURL() . '<br>';
echo
$rt->getPenultimaURL() . '<br>';
echo
$rt->getUltimaURL() . '<br>';
echo
'<hr>';
echo
$rt->getURLCompleta() . '<br>';