PHP Libraries › symfony › routing Symfony routing library provides flexible and powerful routing capabilities for PHP applications.
Package Description Symfony routing library allows developers to define URL patterns and map them to controllers, providing a robust routing system for web applications. It supports various features like route parameters, requirements, and options, making it a versatile tool for handling HTTP requests.
Classes: Symfony\Component\Routing\DependencyInjection\AddExpressionLanguageProvidersPass Symfony\Component\Routing\DependencyInjection\RoutingResolverPass Symfony\Component\Routing\Alias Symfony\Component\Routing\Requirement\EnumRequirement Symfony\Component\Routing\Generator\ConfigurableRequirementsInterface Symfony\Component\Routing\Generator\UrlGeneratorInterface Symfony\Component\Routing\Generator\Dumper\CompiledUrlGeneratorDumper Symfony\Component\Routing\Generator\Dumper\GeneratorDumper Symfony\Component\Routing\Generator\Dumper\GeneratorDumperInterface Symfony\Component\Routing\Generator\UrlGenerator Symfony\Component\Routing\Generator\CompiledUrlGenerator Symfony\Component\Routing\CompiledRoute Symfony\Component\Routing\Attribute\DeprecatedAlias Symfony\Component\Routing\Attribute\Route Symfony\Component\Routing\RouteCompilerInterface Symfony\Component\Routing\Loader\Psr4DirectoryLoader Symfony\Component\Routing\Loader\PhpFileLoader Symfony\Component\Routing\Loader\ProtectedPhpFileLoader Symfony\Component\Routing\Loader\AttributeFileLoader Symfony\Component\Routing\Loader\AttributeClassLoader Symfony\Component\Routing\Loader\DirectoryLoader Symfony\Component\Routing\Loader\YamlFileLoader Symfony\Component\Routing\Loader\AttributeDirectoryLoader Symfony\Component\Routing\Loader\ContainerLoader Symfony\Component\Routing\Loader\XmlFileLoader Symfony\Component\Routing\Loader\ClosureLoader Symfony\Component\Routing\Loader\GlobFileLoader Symfony\Component\Routing\Loader\Configurator\AliasConfigurator Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator Symfony\Component\Routing\Loader\Configurator\CollectionConfigurator Symfony\Component\Routing\Loader\Configurator\Traits\PrefixTrait Symfony\Component\Routing\Loader\Configurator\Traits\LocalizedRouteTrait Symfony\Component\Routing\Loader\Configurator\Traits\AddTrait Symfony\Component\Routing\Loader\Configurator\Traits\HostTrait Symfony\Component\Routing\Loader\Configurator\Traits\RouteTrait Symfony\Component\Routing\Loader\Configurator\ImportConfigurator Symfony\Component\Routing\Loader\Configurator\RouteConfigurator Symfony\Component\Routing\Loader\ObjectLoader Symfony\Component\Routing\Annotation\Route Symfony\Component\Routing\RouteCompiler Symfony\Component\Routing\Matcher\RedirectableUrlMatcherInterface Symfony\Component\Routing\Matcher\RedirectableUrlMatcher Symfony\Component\Routing\Matcher\RequestMatcherInterface Symfony\Component\Routing\Matcher\TraceableUrlMatcher Symfony\Component\Routing\Matcher\UrlMatcherInterface Symfony\Component\Routing\Matcher\Dumper\StaticPrefixCollection Symfony\Component\Routing\Matcher\Dumper\MatcherDumperInterface Symfony\Component\Routing\Matcher\Dumper\CompiledUrlMatcherDumper Symfony\Component\Routing\Matcher\Dumper\CompiledUrlMatcherTrait Symfony\Component\Routing\Matcher\Dumper\MatcherDumper Symfony\Component\Routing\Matcher\ExpressionLanguageProvider Symfony\Component\Routing\Matcher\UrlMatcher Symfony\Component\Routing\Matcher\CompiledUrlMatcher Symfony\Component\Routing\RouteCollection Symfony\Component\Routing\RouterInterface Symfony\Component\Routing\RequestContextAwareInterface Symfony\Component\Routing\RequestContext Symfony\Component\Routing\Router Symfony\Component\Routing\Exception\InvalidArgumentException Symfony\Component\Routing\Exception\RouteNotFoundException Symfony\Component\Routing\Exception\MissingMandatoryParametersException Symfony\Component\Routing\Exception\InvalidParameterException Symfony\Component\Routing\Exception\ResourceNotFoundException Symfony\Component\Routing\Exception\RouteCircularReferenceException Symfony\Component\Routing\Exception\LogicException Symfony\Component\Routing\Exception\ExceptionInterface Symfony\Component\Routing\Exception\NoConfigurationException Symfony\Component\Routing\Exception\RuntimeException Symfony\Component\Routing\Exception\MethodNotAllowedException Symfony\Component\Routing\Route Close Previous Versions Code Integration Example Make sure to include the correct namespace and class paths for proper usage.
<?php
// Example from PHPlibraries.com
require_once 'libs/symfony/routing/7.3.4/loader.php';
require_once 'libs/symfony/http-foundation/7.3.4/loader.php';
use Symfony\Component\Routing\Route;
use Symfony\Component\Routing\RouteCollection;
$obj = new Route();
echo '✅ Test OK: ' . get_class($obj);
?>
Report a broken download or code We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.
Community Discussion Ask questions, share tips, or report issues below.