Download the PHP package devpontes/route without Composer
On this page you can find all versions of the php package devpontes/route. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package route
Route by @Devpontes
About Route componet
Route is a simple route component for small MVC-based projects
Route é um simples componente de rotas para projetos pequenos baseados em MVC.
Highlights
- Rotas nomeadas. (named routes)
- Verbos GET e POST. (GET and POST verbs)
- Simples de configurar. (simple to set up)
- Padrão controller/método/{paramentro}. (pattern controller/method/{parameter}).
Installation
Installation is available through Composer:
or run
Documentation
To use the route, it is necessary to redirect all application requests to the index.php file, which will be the Front Controller, where all application traffic will be handled, see the example
- Para usar o route é necessário redirecionar todas as requisições da aplicação para o arquivo index.php que será o Front Controller, onde todo o tráfego da aplicação será tratado, veja o exemplo:
Apache
Configure an array with the application routes
- Configure um array com as rotas da aplicação.
At initialization, enter the route array. Then, use the namespace method passing the path that was configured in the composer.json autoload. Lastly, use rum to execute
- Na inicialização, informe o array de rotas. Em seguida, utilize o método namespace passando o caminho que foi configurado no autoload do composer.json. Por último, use o rum para executar.
Usage
To handle unconfigured routes, use the fail method, see
- Para tratar rotas não configuradas use o método fail, veja:
Credits
- Moises Pontes (Developer)
License
The MIT License (MIT).
All versions of route with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
The package devpontes/route contains the following files
Loading the files please wait ....