Download the PHP package fyre/router without Composer

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

FyreRouter

FyreRouter is a free, open-source URI routing library for PHP.

Table Of Contents

Installation

Using Composer

In PHP:

Basic Usage

The base URI will be resolved from the "App.baseUri" key in the Config.

Autoloading

It is recommended to bind the Router to the Container as a singleton.

Any dependencies will be injected automatically when loading from the Container.

Methods

Clear

Clear all routes and aliases.

Connect

Connect a route.

You can generate the following helper methods to connect specific routes.

See the Routes section for supported path and destination formats.

You can also pass additional arguments to the middleware by appending a colon followed by a comma-separated list of arguments to the alias string. You can use route placeholders as arguments by referencing the route placeholder surrounded by curly braces.

Get Base Uri

Get the base uri.

Group

Create a group of routes.

Load Route

Load a route.

This method will return a ServerRequest, with the route parameter set to the loaded route.

Url

Generate a URL for a named route.

Routes

All routes extend the Fyre\Router\Route class, and include the following methods.

Check Method

Check if the route matches a test method.

Check Path

Check if the route matches a test path.

Get Arguments

Get the route arguments.

Get Binding Fields

Get the route binding fields.

Get Destination

Get the route destination.

Get Middleware

Get the route middleware.

Get Path

Get the route path.

Get Placeholders

Get the route placeholders.

Handle

Handle the route.

This method will return a ClientResponse.

Set Middleware

Set the route middleware.

Set Placeholder

Set a route placeholder.

Closure

The $path and $destination can be expressed in the following formats:

Route parameter entity binding is handled by the Substitute Bindings middleware.

Controller

The $path and $destination can be expressed in the following formats:

Route parameter entity binding is handled by the Substitute Bindings middleware.

Get Action

Get the route controller action.

Get Controller

Get the route controller class name.

Redirect

The $path and $destination can be expressed in the following formats:

Middleware

Any dependencies will be injected automatically when loading from the Container.

Handle

Handle a ServerRequest.

This method will return a ClientResponse.

Substitute Bindings

This middleware will automatically resolve entities from route placeholders based on the parameter types of the route destination.

Any dependencies will be injected automatically when loading from the Container.

Handle

Handle a ServerRequest.

This method will return a ClientResponse.


All versions of router with dependencies

PHP Build Version
Package Version
Requires fyre/container Version ^1.0
fyre/error Version ^6.0
fyre/middleware Version ^6.0
fyre/orm Version ^11.0
fyre/server Version ^4.0
fyre/uri 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 fyre/router contains the following files

Loading the files please wait ....