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

Descoperă cele mai bune repository-uri open source cu căutare AI.

ExploreazăCăutări recomandateAlternative open-sourceSoftware self-hostedBlogHartă site
ProiectDespreCum realizăm clasamentulPresăServer MCP
LegalConfidențialitateTermeni
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
symfony avatar

symfony/routing

0
View on GitHub↗
7,618 stele·93 fork-uri·PHP·MIT·5 vizualizărisymfony.com/routing↗

Routing

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-domain routing, and localized route paths. To handle high-volume dynamic URL sets, the library provides a mechanism for route resolution via a database index.

Broad capability areas include HTTP route validation via regular expressions, the restriction of routes by HTTP method, and the use of expression-based conditional matching to evaluate requests based on runtime context. It also supports route grouping with shared prefixes and the ability to sign and verify URIs for integrity.

Features

  • URI-to-Controller Mappings - Associates incoming URL paths with specific controller classes and methods to handle the request.
  • HTTP Routing - Maps incoming URL paths to specific controller actions using defined patterns and configuration.
  • Regex Path Matchers - Uses regular expressions to match incoming request paths and extract dynamic URL parameters.
  • Request Matching - Evaluates if a request meets specific conditions based on IP, HTTP method, host, or path using matcher classes.
  • HTTP Method Restrictions - Limits the HTTP verbs a specific route responds to and rejects requests using unsupported methods.
  • Conditional Route Matching - Evaluates request attributes and boolean expressions to determine if a route matches based on runtime context.
  • Automatic Dependency Resolution - Injects required services into constructors or methods automatically by reading type-hints.
  • Attribute-Based Routing - Maps HTTP requests to controllers using metadata attributes on target methods.
  • Controller-Action Routing - Maps incoming HTTP request paths directly to specific controller actions.
  • HTTP Methods - Enables limiting which HTTP verbs a specific route responds to and rejecting unsupported methods.
  • HTTP Routers - Provides a complete system for mapping incoming HTTP request paths to handler functions using patterns and methods.
  • Multi-Format Route Loading - Supports loading route configurations from YAML, XML, PHP arrays, and class attributes.
  • PHP Routing Libraries - Serves as a programmatic interface for defining and resolving URL patterns within PHP applications.
  • Request Parameter Mapping - Matches incoming HTTP request paths against defined patterns to extract configuration variables and parameters.
  • Route Definition Loading - Reads route definitions and imports from configuration files to map incoming requests to controllers.
  • Route Organization - Provides a structured way to organize and group routes using collections and shared prefixes.
  • Route Parameter Validation - Enforces regular expression requirements on path parameters to differentiate between similar routes.
  • Route Validation - Enforces requirements on URL parameters using regular expressions to ensure requests match intended destinations.
  • Static Route Compilers - Compiles route definitions into optimized PHP code to maximize request matching performance.
  • URL Generators - Produces valid absolute or relative URIs by mapping route names and parameters back to path patterns.
  • Sub-Domain Routing - Matches incoming HTTP hosts against specific values or patterns to trigger appropriate route matches.
  • HTTP Cache Headers - Manages HTTP headers to define expiration and validation for browser and proxy caching.
  • Environment Configuration Management - Loads different configuration sets based on the active environment to vary behavior between development and production.
  • Environment Variable Mapping - References system environment variables at runtime to handle machine-specific settings without clearing caches.
  • Configuration File Loading - Provides mechanisms for scanning and parsing structured configuration files like YAML, XML, and PHP arrays.
  • Dynamic Configuration Expressions - Parses strings with literals and operators to determine values dynamically based on runtime context.
  • HTTP Cache Policies - Provides configurations for expiration and validators to optimize HTTP content delivery.
  • Route Parameter Validations - Enforces strict requirement checks on route parameters to ensure the resulting generated URIs are valid.
  • Expression-Based Routing - Implements conditional route matching using flexible expression evaluation.
  • Controller Response Serializers - Automatically converts controller return objects or arrays into the requested response format using a serializer.
  • HTTPS Enforcements - Ensures that generated URLs use HTTPS and automatically redirects insecure HTTP requests to their secure counterparts.
  • URI Signing - Implements cryptographic signing of URLs to ensure link integrity and enforce expiration timestamps.
  • Configuration Injection - Passes defined configuration values into controllers and services via constructor injection or helper methods.
  • Dependency Autowiring - Populates typed properties and calls methods with dependencies using markers to indicate requirements.
  • Interface-to-Implementation Bindings - Binds specific service implementations to interfaces to resolve ambiguity when multiple classes implement the same type.
  • Stateless Request Processing - Prevents session usage during request matching to keep responses cacheable and independent of user state.
  • Database Entity Resolvers - Queries a database for a specific object based on a URL parameter and passes the result to the controller.
  • Custom Route Loaders - Allows the definition of custom loading logic to generate routes from external patterns or conventions.
  • Database-Driven Route Resolution - Allows looking up request paths in a database index to handle large volumes of dynamic URLs.
  • Database Route Resolution - Enables high-performance resolution of large volumes of dynamic URLs using a database index.
  • Localized Routing - Defines unique URLs for the same route based on the user's translation locale.
  • Prefix Groupings - Allows organizing related route definitions under shared path prefixes to reduce configuration duplication.
  • JSON Response Formatters - Encodes data into JSON format and automatically sets the appropriate application/json content type header.
  • Routing Configurations - Provides command line tools to list registered routes and simulate URL matching for debugging.
  • Path Parameter Converters - Transforms route parameter values into database objects or enumerations before they reach the controller.
  • Route Parameter Captures - Defines optional path parameters with default values so routes match even when parameters are omitted.
  • URL Redirections - Provides mechanisms to forward requests to different URLs using defined redirection rules.

Istoric stele

Graficul istoricului de stele pentru symfony/routingGraficul istoricului de stele pentru symfony/routing

Căutare AI

Explorează mai multe repository-uri excelente

Descrie ce ai nevoie în limbaj simplu — AI-ul sortează mii de proiecte open source selectate în funcție de relevanță.

Start searching with AI

Întrebări frecvente

Ce face symfony/routing?

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.

Care sunt principalele funcționalități ale symfony/routing?

Principalele funcționalități ale symfony/routing sunt: URI-to-Controller Mappings, HTTP Routing, Regex Path Matchers, Request Matching, HTTP Method Restrictions, Conditional Route Matching, Automatic Dependency Resolution, Attribute-Based Routing.

Care sunt câteva alternative open-source pentru symfony/routing?

Alternativele open-source pentru symfony/routing includ: symfony/translation — Symfony Translation is a PHP library and framework component for internationalizing applications. It provides a… codeigniter4/codeigniter4 — CodeIgniter is a PHP web framework built on the Model-View-Controller pattern, designed for building full-stack web… zijianhe/koa-router — koa-router is a routing middleware for Koa applications that maps incoming HTTP requests to specific handler functions… gorilla/mux — This project is a request router and web framework for the Go programming language. It provides a toolkit for matching… julienschmidt/httprouter — httprouter is a high-performance HTTP request router for Go that maps incoming network requests to specific handler… dodyg/practical-aspnetcore — This project is a comprehensive sample library and implementation guide for ASP.NET Core. It provides a collection of…

Alternative open-source pentru Routing

Proiecte open-source similare, clasificate după numărul de funcționalități comune cu Routing.
  • symfony/translationAvatar symfony

    symfony/translation

    6,607Vezi pe GitHub↗

    Symfony Translation is a PHP library and framework component for internationalizing applications. It provides a complete system for managing message catalogs, handling locale-aware string translation, and formatting messages using ICU MessageFormat syntax to support pluralization, gender, and conditional selection. The component organizes translatable strings into named domains, supports key-based lookup that decouples source text from localized versions, and offers deferred rendering through translatable objects that store parameters and render only when output is needed. The library disting

    PHPcomponentphpsymfony
    Vezi pe GitHub↗6,607
  • codeigniter4/codeigniter4Avatar codeigniter4

    codeigniter4/CodeIgniter4

    5,924Vezi pe GitHub↗

    CodeIgniter is a PHP web framework built on the Model-View-Controller pattern, designed for building full-stack web applications. It provides a lightweight toolkit with minimal configuration, organizing application logic into controllers, models, and views for clean separation of concerns. The framework includes a fluent query builder for constructing SQL statements programmatically, PSR-4 autoloading with namespace mapping, and a service-based dependency injection container for managing shared class instances. The framework distinguishes itself through its comprehensive set of built-in tools

    PHPcodeignitercodeigniter4framework-php
    Vezi pe GitHub↗5,924
  • zijianhe/koa-routerAvatar ZijianHe

    ZijianHe/koa-router

    4,816Vezi pe GitHub↗

    koa-router is a routing middleware for Koa applications that maps incoming HTTP requests to specific handler functions based on URL patterns and HTTP methods. It provides the foundation for organizing web endpoints and developing REST APIs by linking request paths to their corresponding controller actions. The project enables the organization of complex endpoints through recursive router nesting, allowing multiple router instances to be mounted as middleware to create logical route hierarchies. It supports dynamic URL generation via named route mapping, which allows the creation of URL string

    JavaScript
    Vezi pe GitHub↗4,816
  • gorilla/muxAvatar gorilla

    gorilla/mux

    21,832Vezi pe GitHub↗

    This project is a request router and web framework for the Go programming language. It provides a toolkit for matching incoming HTTP network requests to specific handler functions by evaluating criteria such as URL paths, request methods, headers, and hostnames. The framework distinguishes itself through its flexible matching capabilities, which include support for regular expressions and dynamic variable extraction from URL segments. It allows developers to organize routes into logical hierarchies, share common path prefixes, and maintain a central registry of named routes to facilitate prog

    Gogogolanggorilla
    Vezi pe GitHub↗21,832
  • Vezi toate cele 30 alternative pentru Routing→