Download the PHP package refkinscallv/router without Composer

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

RF PHP Routing Library

Overview

The RF PHP Routing Library provides a flexible and easy-to-use routing system for PHP applications. It supports registering routes from separate files, setting maintenance and 404 page handlers, and defining routes with various HTTP methods. Additionally, it supports route grouping for organizing routes under a common prefix.

Installation

  1. Install via Composer

    Make sure you have Composer installed. Run the following command to add the RF PHP Routing Library to your project:

  2. Autoload Dependencies

    Ensure that your project’s vendor/autoload.php is required in your application entry point.

Usage

Importing the Library

Before using the routing methods, you need to import the Route class from the RF\Router namespace. This is done with the use statement:

This line of code allows you to use the Route class methods without needing to write the full namespace each time.

1. Register Routes from Separate Files

You can register routes from different files using the Route::register method:

2. Global Settings

Maintenance Page

Define a maintenance page handler:

404 Page

Define a 404 page handler:

3. Basic Route Usage

Define routes with different HTTP methods:

HTTP Methods

4. Route with Parameters

Define routes with optional or required parameters. Optional parameters are denoted with a ? in the route pattern, indicating that the parameter is not required and can be omitted in the URL.

Example

Define a route with an optional parameter:

Usage

5. Route Groups

Group routes under a common prefix:

5. Run the Router

Finally, execute the router to handle incoming requests:

Contributing

If you would like to contribute to the development of this library, please submit a pull request or open an issue on GitHub.

License

This library is licensed under the MIT License. See the LICENSE file for more details.


All versions of router with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
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 refkinscallv/router contains the following files

Loading the files please wait ....