PHP Classes

How can PHP parse url query parameters to help routing HTTP requests using the package MiPhant Route: Parse the current request URL to get its parts

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2025-11-17 (17 days ago) RSS 2.0 feedNot yet rated by the usersTotal: Not yet counted Not yet ranked
Version License PHP version Categories
miphantroute 1.0MIT/X Consortium ...7HTTP, Parsers, PHP 7
Description 

Author

This package can parse the current request URL to get its parts.

It can retrieve the current HTTP request URL path, clean it to remove tags and white space, and return its parts.

Currently, it can:

- Check if a given name is in the URL path

- Get the URL parameters by number

- Get the first, last or penultimate URL parameter

In Portuguese:

MiPhantRoute é uma biblioteca para trabalhar com rotas de uma forma mais fácil.

Picture of Murilo Gomes
  Performance   Level  
Name: Murilo Gomes <contact>
Classes: 3 packages by
Country: Brazil Brazil
Age: 37
All time rank: Not yet ranked
Week rank: Not yet ranked
Innovation award
Innovation award
Nominee: 1x

Details

MiPhantRoute

MiPhantRoute é uma biblioteca para trabalhar com rotas de uma forma mais fácil.

Installation

composer require mugomes/miphantroute

Support

  • https://www.mugomes.com.br/p/apoie.html

License

Copyright (c) 2025 Murilo Gomes Julio

Licensed under the MIT license.

All contributions to the MiPhantRoute are subject to this license.


  Files folder image Files (4)  
File Role Description
Files folder imagesrc (1 file)
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files (4)  /  src  
File Role Description
  Plain text file MiPhantRoute.php Class Class source

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads  
 100%
Total:0
This week:0