Download the PHP package idealogica/route-one without Composer

On this page you can find all versions of the php package idealogica/route-one. 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-one

route-one - PSR-15 route middleware for advanced middleware routing


route-one

The package is in the beta stage

route-one is a PSR-15 compatible middleware aimed to flexibly route a request to another middleware based on HTTP request url path, host, http method, etc. It is built on top of Middleman and Aura.Router packages. It's a good addition to your favorite middleware dispatcher to feel it more likely classical request router. This package also contains a middleware dispatcher that has bunch of useful methods for easy creating route middleware instances.

route-one is very similar to classic controller routers from every modern framework, but it has some more advantages:

Installation

General usage

As you can see you can use callable as middleware. It is not a part of PSR-15 but it can be very helpful for quick prototyping.

Also you can use the route middleware separately with your own dispatcher:

For more information on routing rules configuration please refer to Aura.Router routes documentation.

Uri generation

You can use generator to create URIs based or your named routes. Example for the code above:

For more information on URIs generation please refer to Aura.Router generator documentation.

License

route-one is licensed under a MIT License.


All versions of route-one with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
aura/router Version ~3.1
psr/http-message Version ~1.0
psr/container Version ~1.0
mindplay/middleman Version ~3.0.3
psr/http-server-middleware Version ~1.0.1
psr/http-server-handler Version ~1.0.1
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 idealogica/route-one contains the following files

Loading the files please wait ....