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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package route

Route by @Devpontes

Maintainer Source Code PHP from Packagist Latest Version Build Quality Score Total Downloads

About Route componet

Route is a simple and lightweight route management component designed for small projects based on MVC architecture.

O Route é um componente simples e leve de gerenciamento de rotas, projetado para pequenos projetos baseados em arquitetura MVC.

Highlights

Instalação

Installation is available through Composer:

or run

Documentation

1. Configuração

To use Route, all application requests must be redirected to the index.php file, which will act as the Front Controller. Example using Apache (.htaccess)

Para utilizar o Route, todas as requisições da aplicação devem ser redirecionadas para o arquivo index.php, que atuará como o Front Controller. Exemplo usando o Apache (.htaccess):

Apache

2. Definição de Rotas

Routes must be defined in an array in the format [path, controller@method]

As rotas devem ser definidas em um array no formato [path, controller@method]:

3. Captura da URL

The request URL must be captured and passed to the component in the constructor or via the setter method.

A URL da requisição deve ser capturada e passada ao componente no construtor ou via metodo setter. Exemplo com servidor Apache:

ou usando a pasta publica

4. Inicialização

On component initialization: 1 - Enter the routes array; 2 - Configure the controllers' namespace (the same as defined in composer.json); 3 - Run with the run() method.

Na inicialização do componente:

  1. Informe o array de rotas.
  2. Configure o namespace dos controladores (mesmo definido no composer.json).
  3. Execute com o método run().
Usage

5. Tratamento de Erros

To capture unconfigured routes, use the fail method

Para capturar rotas não configuradas, utilize o método fail:

6. Modo Estrito

Strict mode differentiates between routes with and without trailing slashes.

O modo estrito diferencia rotas com e sem barra final. Exemplo:

Enabling/disabling

Credits

License

The MIT License (MIT).


All versions of route with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package devpontes/route contains the following files

Loading the files please wait ....