Download the PHP package marco476/routing-manager without Composer

On this page you can find all versions of the php package marco476/routing-manager. 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 routing-manager

Build Status Packagist Code Climate Issue Count PHP Version Packagist

PHP performance-oriented Routing manager

This library is PHP performance-oriented routing manager working with routes setted by:

Installation

You can install it with Composer:

Usage

Use the routing-manager library is extreme simple. All routes setted must include an expression key/tag for matching with URI.

When you call matchRoute method, the library find a match between routes setted and URI present. It return the route matched array if math with URI is Ok or false if not.

Array

See an example with array:

YML

See an example with YML:

And see a YML routes configuration file:

Note: If you want use a YAML file routes configuration, you must install the yaml php extension. You can install it with sudo apt-get install php-yaml or with PECL. For detail, see that

XML

See an example with XML:

And see a XML routes configuration file:

Note: If you want use a XML file routes configuration, you must install the libxml php extension. You can see that

Wildcards

A wildcard is a jolly name inserting into {} (like {idUser}). You can set wildcards into expression key/tag and set a requirements array key/tag for each one of them (see the example on bottom).

If requirements array is not present for a wildcard, it can be everything. For example:

It can be everything:

If requirements array is present for a wildcard, you can use a custom regular expression or ExpressionRoute static constant for NUMERIC or STRING (only in PHP array) strong expression. For example :

It can be:

But not:

And with custom regular expression:

It can be:

and not else! See the examples on bottom:

Wildcards in Array

See an example with array:

Wildcards in YML

See an example with YML:

Wildcards in XML

See an example with XML:

Unit Test

You can run unit test from document root with:


All versions of routing-manager with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6
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 marco476/routing-manager contains the following files

Loading the files please wait ....