awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
nikic avatar

nikic/FastRoute

0
View on GitHub↗
5,270 stars·451 forks·PHP·22 views

FastRoute

FastRoute is a PHP request router that maps incoming HTTP request URIs to specific handlers. It functions as a regular expression router, matching dynamic request paths against patterns to extract variables and route traffic.

The project operates as a cached route dispatcher, storing pre-computed routing tables to eliminate the overhead of parsing definitions on every request. It utilizes regular expression grouping to combine multiple route patterns into a single operation, reducing the total number of matching steps required for resolution.

The library covers dynamic API endpoint management through the use of placeholder patterns and optional segments. It provides capabilities for group-based prefixing to organize endpoints and allows for custom routing logic by replacing the parser, data generator, or dispatcher.

Features

  • PHP Routing Libraries - Provides a high-performance routing library for the PHP runtime using optimized matching algorithms.
  • HTTP Request Routers - Provides a fast routing library that maps HTTP request URIs to specific handlers.
  • URI-to-Controller Mappings - Maps incoming HTTP request URIs to specific handlers using flexible patterns and optional segments.
  • Custom Web Route Dispatching - Implementing specialized URI parsing and dispatching strategies to control how web requests are handled.
  • Dynamic API Routing - Handles flexible URL patterns and optional segments to route API requests to the correct business logic.
  • Regular Expression Routers - Matches dynamic request paths against regular expression patterns to extract variables and route traffic.
  • Handler Dispatchers - Decouples URI matching from execution via a dedicated dispatching layer that maps patterns to handler functions.
  • Dynamic Segment Extraction - Uses placeholder patterns within URIs to capture dynamic path segments and pass them as arguments to handlers.
  • Cached Dispatchers - Uses a cached routing mechanism to eliminate the overhead of parsing route definitions on every request.
  • Regular Expression Grouping - Combines multiple route patterns into a single large regular expression to minimize the number of matching operations.
  • Prefix Groupings - Supports nesting route definitions under shared path prefixes to organize endpoints and reduce repetition.
  • Server-Side Route Caching - Stores pre-computed routing tables to bypass the definition process and speed up request dispatching.
  • Route Table Caching - Implements a cached route dispatcher that stores pre-computed routing tables in static files to eliminate parsing overhead.
  • Routing and Templating - High-performance routing library.

Star history

Star history chart for nikic/fastrouteStar history chart for nikic/fastroute

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Frequently asked questions

What does nikic/fastroute do?

FastRoute is a PHP request router that maps incoming HTTP request URIs to specific handlers. It functions as a regular expression router, matching dynamic request paths against patterns to extract variables and route traffic.

What are the main features of nikic/fastroute?

The main features of nikic/fastroute are: PHP Routing Libraries, HTTP Request Routers, URI-to-Controller Mappings, Custom Web Route Dispatching, Dynamic API Routing, Regular Expression Routers, Handler Dispatchers, Dynamic Segment Extraction.

Which projects share features with nikic/fastroute?

Projects with overlapping indexed features include: symfony/routing — This PHP routing library is an HTTP request router and matcher designed to map incoming URL paths to specific… joeldev/jlroutes — JLRoutes is an iOS URL routing library and route management framework. It serves as a deep link handler that maps URL… symfony/framework-bundle — This project serves as the core integration layer for building full-stack web applications in PHP. It provides a… daveh/php-mvc — This project is a lightweight PHP framework designed for building web applications using the model-view-controller… aplus-framework/routing — This project is a framework-agnostic routing component for PHP applications designed to map incoming web requests to… codeigniter4/codeigniter4 — CodeIgniter is a PHP web framework built on the Model-View-Controller pattern, designed for building full-stack web…

Projects sharing features with FastRoute

These projects share indexed features with FastRoute. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • symfony/routingsymfony avatar

    symfony/routing

    7,618View on GitHub↗

    This PHP routing library is an HTTP request router and matcher designed to map incoming URL paths to specific controller actions using defined patterns and configuration. It serves as a programmatic interface for defining, loading, and resolving URL patterns, while providing a URL generator to produce absolute or relative URIs from route names and parameters. The system supports diverse route loading through YAML, XML, PHP arrays, and class attributes, utilizing compiled route matching to optimize performance. It enables sophisticated request handling through regex-based path matching, sub-do

    PHPcomponentphprouter
    View on GitHub↗7,618
  • joeldev/jlroutesjoeldev avatar

    joeldev/JLRoutes

    5,709View on GitHub↗

    JLRoutes is an iOS URL routing library and route management framework. It serves as a deep link handler that maps URL patterns to specific code blocks or object handlers to manage navigation and deep-linking within an application. The framework utilizes a chain-based evaluation system to process sequences of potential matches and supports the organization of routing tables into distinct sets based on URL schemes. It allows for the replacement of standard matching logic through custom definition resolution to control how paths are parsed. The system covers URL pattern mapping, dynamic paramet

    Objective-Capplinkcarthagecocoapods
    View on GitHub↗5,709
  • daveh/php-mvcdaveh avatar

    daveh/php-mvc

    815View on GitHub↗

    This project is a lightweight PHP framework designed for building web applications using the model-view-controller architectural pattern. It provides a structured environment that separates business logic, data management, and user interface presentation into distinct layers to improve code maintainability. The framework utilizes a front-controller to intercept all incoming web traffic, routing requests to specific controller actions based on defined URL patterns. It incorporates middleware-style request interception, allowing for the execution of custom logic such as authentication, security

    PHPmvc-frameworkphpphp-mvc
    View on GitHub↗815
  • aplus-framework/routingaplus-framework avatar

    aplus-framework/routing

    252View on GitHub↗

    This project is a framework-agnostic routing component for PHP applications designed to map incoming web requests to specific controller methods or functions. It serves as a utility for managing request dispatching and URL mapping within server-side web environments. The library identifies the correct handler by matching request URLs against predefined patterns using regular expressions and verifying the request verb against specific method requirements. It supports the construction of RESTful API endpoints and facilitates the execution of logic through a middleware pipeline that can inspect

    PHPaplusaplus-frameworkcomposer
    View on GitHub↗252
  • Compare all 30 related projects→