Symfony Components

Symfony Components are a set of decoupled and reusable PHP libraries. They are becoming the standard foundation on which the best PHP applications are built on. You can use any of these components in your own applications independently from the Symfony Framework.


Use Composer to install any of the Symfony Components in your PHP project:

$ composer require

Component List

Component Description Code Documentation
Asset Manages URL generation and versioning of web assets such as CSS stylesheets, JavaScript files and image files. Code Documentation
BrowserKit Simulates the behavior of a web browser. Code -
ClassLoader Loads your project classes automatically if they follow some standard PHP conventions. Code Documentation
Config Helps you find, load, combine, autofill and validate configuration values. Code Documentation
Console Eases the creation of beautiful and testable command line interfaces. Code Documentation
CssSelector Converts CSS selectors to XPath expressions. Code Documentation
Debug Provides tools to ease debugging PHP code. Code Documentation
DependencyInjection Allows you to standardize and centralize the way objects are constructed in your application. Code Documentation
DomCrawler Eases DOM navigation for HTML and XML documents. Code Documentation
EventDispatcher Implements the Mediator pattern in a simple and effective way to make projects truly extensible. Code Documentation
ExpressionLanguage Provides an engine that can compile and evaluate expressions. Code Documentation
Filesystem Provides basic utilities for the filesystem. Code Documentation
Finder Finds files and directories via an intuitive fluent interface. Code Documentation
Form Provides tools to easy creating, processing and reusing HTML forms. Code Documentation
Guard Brings many layers of authentication together, making it much easier to create complex authentication systems where you have total control. Code -
HttpFoundation Defines an object-oriented layer for the HTTP specification. Code Documentation
HttpKernel Provides the building blocks to create flexible and fast HTTP-based frameworks. Code Documentation
Icu Contains the data of the ICU library in a specific version. This component is deprecated since October 2014, use the Intl component instead. Code -
Intl Provides fallback code to handle cases when the intl extension is missing. Code Documentation
Ldap Provides an LDAP client for PHP on top of PHP's ldap extension. Code -
Locale Provides fallback code to handle cases when the intl extension is missing. This component is deprecated since 2.3, use the Intl component instead. Code Documentation
OptionsResolver Helps you configuring objects with option arrays. Code Documentation
Process Executes commands in sub-processes Code Documentation
PropertyAccess Provides function to read and write from/to an object or array using a simple string notation. Code Documentation
PropertyInfo Extracts information about the properties of PHP classes using metadata of popular sources (Doctrine, PHP Reflection, PHPdoc, etc.) Code -
Routing Maps an HTTP request to a set of configuration variables. Code Documentation
Security Provides an infrastructure for sophisticated authorization systems. Code Documentation
Serializer Turns objects into a specific format (XML, JSON, Yaml, ...) and the other way around. Code Documentation
Stopwatch Provides a way to profile code. Code Documentation
Templating Provides all the tools needed to build any kind of template system. Code Documentation
Translation Provides tools to internationalize your application. Code Documentation
Validator Provides tools to validate classes. Code -
VarDumper Provides mechanisms for walking through any arbitrary PHP variable. Code Documentation
Yaml Loads and dumps YAML files. Code Documentation