Download the PHP package darling/roady-routing-utilities without Composer

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

RoadyRoutingUtilities

The RoadyRoutingUtilities library provides the classes responsible for handling routing for the Roady php framework.

Though it is designed for use with the Roady php framework, this library can be used on it's own.

Installation

Classes

Darling\RoadyRoutingUtilities\classes\requests\Request

A Request represents a request to a server.

A Request has a Name, and a Url.

A Request's Name will either be based on the value of the request query parameter that is assigned to the Request's Url, the value of $_POST['request'], or the value of $_GET['request'].

If the Url is not assigned a query parameter named request, and nither $_POST['request'] or $_GET['request'] is set, then the Request's Name will be homepage.

Note: The Url's request query parameter will always be preferred if it is set, then $_POST['request'], then $_GET['request'].

Examples:

To define a Request that represents the current request to a server instantiate a new Request without any arguments:

To define a Request that represents a specific request to a server an opitional url string such as http://example.com:8080?query#fragment may be passed to the new Request's __construct method.

For example:

Darling\RoadyRoutingUtilities\classes\responses\Response

A Response represents the relationship between a Request and collection of Routes that should be served in response to that Request.

Examples:

To define a Response for a specific Request to a server:

Darling\RoadyRoutingUtilities\classes\routers\Router

A Router can accept a Request and return an appropriate Response for that Request.

Examples:

As a final example, the following is a snippet from Roady's index.php demonstrating how a Request, Response, and Router are used in practice:


All versions of roady-routing-utilities with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
darling/php-darling-dev-tools Version ^1.0
darling/php-file-system-paths Version ^1.0
darling/php-text-types Version ^1.1
darling/php-unit-test-utilities Version ^1.0
darling/php-web-paths Version ^1.0
darling/roady-module-utilities Version ^1.0
darling/roady-routes Version ^1.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 darling/roady-routing-utilities contains the following files

Loading the files please wait ....