Download the PHP package fastd/routing without Composer

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

FastD Routing

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

Simple PHP router that supports routing nesting, dynamic routing, fuzzy routing, middleware, and more. Relies on the http component.

Claim

Composer

Use

You can set the route through the RouteCollection object, or you can create a route through the route list. Detailed documentation: fastd/routing

Static routing

Route matching does not call the callback of the route, but returns the entire Route for callback processing, so match only returns the matching route object.

Dynamic routing

Under dynamic routing, the successfully matched route will update the matching parameters to getParameters, and get the matching parameter information through getParameters.

Same route, multiple methods

Hybrid routing

In many cases, our route may only be one parameter difference. Here is an example.

Routing Group

The routing group will add its own routing prefix to each of your sub-routing dollars, supporting multiple levels of nesting.

Fuzzy routing

The inspiration for fuzzy routing comes from the onRequest callback of the Swoole http server. Because each route entry passes onRequest, when it is created, there may be some special routes processed according to pathinfo. Then the fuzzy route can be sent. It’s time to use.

Match all legal routes that start with /api and then callback

Routing middleware

The routing component implements routing middleware based on [Http] (https://github.com/JanHuang/http) and [HTTP Middlewares] (https://github.com/JanHuang/middleware).

Routing middleware callbacks automatically call back Psr\Http\Message\ServerRequestInterface and FastD\Middleware\DelegateInterface as arguments.

After the middleware call is completed, the \Psr\Http\Message\ResponseInterface object is returned for the program to process the output.

Testing

Contribution

I am very pleased to be interested and willing to participate in the creation of a better PHP ecosystem, the developer of the Swoole Eco.

If you are happy with this, but don't know how to get started, you can try the following things:

Contact

If you encounter problems during use, please contact: http://weibo.com/ecbboyjan)

License MIT


All versions of routing with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6
fastd/middleware Version ^1.0
fastd/http Version ^3.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 fastd/routing contains the following files

Loading the files please wait ....