Symfony Components
Symfony Components are decoupled libraries for PHP applications. Battle-tested in hundreds of thousands of projects and downloaded billions of times, they're the foundation of the most important PHP projects.
Installation
Use Composer to install any of the Symfony Components in your PHP project:
All Symfony Components (5)
Sorted by Daily Downloads
- Name (A → Z)
- Name (Z → A)
- Daily downloads (More → Less)
- Daily downloads (Less → More)
- Total downloads (More → Less)
- Total downloads (Less → More)
- Dependent projects (More → Less)
- Dependent projects (Less → More)
Polyfill Mbstring
496 million downloads (561K per day) • 337 OSS projects depend on it
Symfony polyfill for the Mbstring extension
Polyfill PHP 8.0
215 million downloads (502K per day) • 466 OSS projects depend on it
Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions
DeprecationContracts
182 million downloads (486K per day) • 179 OSS projects depend on it
A generic function and convention to trigger deprecation notices
Polyfill Intl Normalizer
210 million downloads (482K per day) • 19 OSS projects depend on it
Symfony polyfill for intl's Normalizer class and related functions
Polyfill Ctype
377 million downloads (468K per day) • 83 OSS projects depend on it
Symfony polyfill for ctype functions
Finder
407 million downloads (453K per day) • 3,353 OSS projects depend on it
Finds files and directories via an intuitive fluent interface
Console
453 million downloads (450K per day) • 9,326 OSS projects depend on it
Eases the creation of beautiful and testable command line interfaces
Process
393 million downloads (416K per day) • 4,216 OSS projects depend on it
Executes commands in sub-processes
This component is backed by SensioLabs
As the creator of Symfony, SensioLabs supports companies using Symfony, with an offering encompassing consultancy, expertise, services, training, and technical assistance to ensure the success of web application development projects.
Service Contracts
252 million downloads (399K per day) • 90 OSS projects depend on it
Generic abstractions related to writing services
Polyfill PHP 7.2
286 million downloads (395K per day) • 41 OSS projects depend on it
Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions
Polyfill PHP 7.3
246 million downloads (391K per day) • 84 OSS projects depend on it
Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions
HttpKernel
318 million downloads (376K per day) • 4,689 OSS projects depend on it
Provides a structured process for converting a Request into a Response
EventDispatcher
414 million downloads (375K per day) • 2,685 OSS projects depend on it
Provides tools that allow your application components to communicate with each other by dispatching events and listening to them
HttpFoundation
343 million downloads (365K per day) • 4,040 OSS projects depend on it
Defines an object-oriented layer for the HTTP specification
Polyfill Intl IDN
247 million downloads (358K per day) • 37 OSS projects depend on it
Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions
Translation
335 million downloads (354K per day) • 1,579 OSS projects depend on it
Provides tools to internationalize your application
EventDispatcher Contracts
214 million downloads (344K per day) • 168 OSS projects depend on it
Generic abstractions related to dispatching event
Mime
186 million downloads (338K per day) • 366 OSS projects depend on it
Allows manipulating MIME messages
String
153 million downloads (333K per day) • 322 OSS projects depend on it
Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way
CssSelector
297 million downloads (323K per day) • 2,146 OSS projects depend on it
Converts CSS selectors to XPath expressions
Polyfill Intl Grapheme
153 million downloads (321K per day) • 7 OSS projects depend on it
Symfony polyfill for intl's grapheme_* functions
Translation Contracts
191 million downloads (317K per day) • 153 OSS projects depend on it
Generic abstractions related to translation
VarDumper
315 million downloads (313K per day) • 5,370 OSS projects depend on it
Provides mechanisms for walking through any arbitrary PHP variable
Filesystem
269 million downloads (311K per day) • 2,500 OSS projects depend on it
Provides basic utilities for the filesystem
Routing
306 million downloads (293K per day) • 1,232 OSS projects depend on it
Maps an HTTP request to a set of configuration variables
ErrorHandler
165 million downloads (289K per day) • 230 OSS projects depend on it
Provides tools to manage errors and ease debugging PHP code
Polyfill PHP 8.1
72 million downloads (273K per day) • 98 OSS projects depend on it
Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions
Yaml
313 million downloads (252K per day) • 8,055 OSS projects depend on it
Loads and dumps YAML files
OptionsResolver
159 million downloads (245K per day) • 1,380 OSS projects depend on it
Provides an improved replacement for the array_replace PHP function
Polyfill Iconv
163 million downloads (226K per day) • 54 OSS projects depend on it
Symfony polyfill for the Iconv extension
Config
178 million downloads (205K per day) • 4,895 OSS projects depend on it
Helps you find, load, combine, autofill and validate configuration values of any kind
HttpClient Contracts
124 million downloads (197K per day) • 70 OSS projects depend on it
Generic abstractions related to HTTP clients
DependencyInjection
158 million downloads (174K per day) • 5,348 OSS projects depend on it
Allows you to standardize and centralize the way objects are constructed in your application
Debug
285 million downloads (155K per day) • 543 OSS projects depend on it
Provides tools to ease debugging PHP code
DomCrawler
163 million downloads (149K per day) • 1,918 OSS projects depend on it
Eases DOM navigation for HTML and XML documents
HttpClient
65 million downloads (146K per day) • 1,196 OSS projects depend on it
Provides powerful methods to fetch HTTP resources synchronously or asynchronously
Stopwatch
125 million downloads (139K per day) • 662 OSS projects depend on it
Provides a way to profile code
Cache
97 million downloads (130K per day) • 1,336 OSS projects depend on it
Provides an extended PSR-6, PSR-16 (and tags) implementation
Serializer
93 million downloads (126K per day) • 1,608 OSS projects depend on it
Handles serializing and deserializing data structures, including object graphs, into array structures or other formats like XML and JSON.
Cache Contracts
72 million downloads (122K per day) • 40 OSS projects depend on it
Generic abstractions related to caching
Validator
93 million downloads (116K per day) • 2,765 OSS projects depend on it
Provides tools to validate values
VarExporter
86 million downloads (113K per day) • 148 OSS projects depend on it
Allows exporting any serializable PHP data structure to plain PHP code
PropertyInfo
63 million downloads (107K per day) • 475 OSS projects depend on it
Extracts information about PHP class' properties using metadata of popular sources
Polyfill Intl ICU
106 million downloads (91K per day) • 47 OSS projects depend on it
Symfony polyfill for intl's ICU-related data and classes
PropertyAccess
95 million downloads (88K per day) • 1,580 OSS projects depend on it
Provides functions to read and write from/to an object or array using a simple string notation
BrowserKit
112 million downloads (84K per day) • 2,055 OSS projects depend on it
Simulates the behavior of a web browser, allowing you to make requests, click on links and submit forms programmatically
PHPUnit Bridge
76 million downloads (82K per day) • 3,619 OSS projects depend on it
Provides utilities for PHPUnit, especially user deprecation notices management
Monolog Bridge
55 million downloads (81K per day) • 215 OSS projects depend on it
Provides integration for Monolog with various Symfony components
Polyfill PHP 5.6
130 million downloads (78K per day) • 32 OSS projects depend on it
Symfony polyfill backporting some PHP 5.6+ features to lower PHP versions
Polyfill UUID
41 million downloads (77K per day) • 33 OSS projects depend on it
Symfony polyfill for uuid functions
Dotenv
63 million downloads (76K per day) • 1,631 OSS projects depend on it
Registers environment variables from a .env file
Framework Bundle
71 million downloads (72K per day) • 8,997 OSS projects depend on it
Provides a tight integration between Symfony components and the Symfony full-stack framework
Twig Bridge
67 million downloads (70K per day) • 616 OSS projects depend on it
Provides integration for Twig with various Symfony components
Monolog Bundle
107 million downloads (68K per day) • 1,734 OSS projects depend on it
Symfony MonologBundle
Security Bundle
50 million downloads (67K per day) • 1,378 OSS projects depend on it
Provides a tight integration of the Security component into the Symfony full-stack framework
Intl
67 million downloads (61K per day) • 728 OSS projects depend on it
Provides a PHP replacement layer for the C intl extension that includes additional data from the ICU library
WebProfiler Bundle
44 million downloads (60K per day) • 657 OSS projects depend on it
Provides a development tool that gives detailed information about the execution of any request
Polyfill PHP 7.0
150 million downloads (60K per day) • 53 OSS projects depend on it
Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions
ExpressionLanguage
63 million downloads (57K per day) • 1,171 OSS projects depend on it
Provides an engine that can compile and evaluate expressions
Symfony Flex
56 million downloads (56K per day) • 657 OSS projects depend on it
Composer plugin for Symfony
Guard
38 million downloads (53K per day) • 54 OSS projects depend on it
Symfony Security Component - Guard
Twig Bundle
57 million downloads (52K per day) • 1,860 OSS projects depend on it
Provides a tight integration of Twig into the Symfony full-stack framework
Doctrine Brdige
54 million downloads (49K per day) • 356 OSS projects depend on it
Provides integration for Doctrine with various Symfony components
Messenger
21 million downloads (46K per day) • 450 OSS projects depend on it
Helps applications send and receive messages to/from other applications or via message queues
This component is backed by SensioLabs
As the creator of Symfony, SensioLabs supports companies using Symfony, with an offering encompassing consultancy, expertise, services, training, and technical assistance to ensure the success of web application development projects.
Asset
51 million downloads (45K per day) • 758 OSS projects depend on it
Manages URL generation and versioning of web assets such as CSS stylesheets, JavaScript files and image files
Maker Bundle
33 million downloads (41K per day) • 443 OSS projects depend on it
Symfony Maker helps you create empty commands, controllers, form classes, tests and more so you can forget about writing boilerplate code.
Form
49 million downloads (41K per day) • 2,562 OSS projects depend on it
Allows to easily create, process and reuse HTML forms
PasswordHasher
13 million downloads (38K per day) • 24 OSS projects depend on it
Provides password hashing utilities
Lock
23 million downloads (37K per day) • 231 OSS projects depend on it
Creates and manages locks, a mechanism to provide exclusive access to a shared resource
Debug Bundle
32 million downloads (35K per day) • 572 OSS projects depend on it
Provides a tight integration of the Symfony VarDumper component and the ServerLogCommand from MonologBridge into the Symfony full-stack framework
Inflector
DEPRECATED Don't use this component in new applications.
Converts words between their singular and plural forms (English only)
Doctrine Messenger
12 million downloads (30K per day) • 28 OSS projects depend on it
Symfony Doctrine Messenger Bridge
WebLink
27 million downloads (29K per day) • 192 OSS projects depend on it
Manages links between resources
AMQP Messenger
11 million downloads (26K per day) • 16 OSS projects depend on it
Symfony AMQP extension Messenger Bridge
Redis Messenger
11 million downloads (25K per day) • 7 OSS projects depend on it
Symfony Redis extension Messenger Bridge
Polyfill APCu
58 million downloads (23K per day) • 186 OSS projects depend on it
Symfony polyfill backporting apcu_* functions to lower PHP versions
WebpackEncore Bundle
17 million downloads (23K per day) • 240 OSS projects depend on it
Integration with your Symfony app & Webpack Encore!
Contracts
42 million downloads (22K per day) • 80 OSS projects depend on it
A set of abstractions extracted out of the Symfony components
Polyfill Util
111 million downloads (21K per day) • 5 OSS projects depend on it
Symfony utilities for portability of PHP codes
Runtime
6 million downloads (21K per day) • 127 OSS projects depend on it
Enables decoupling PHP applications from global state
Templating
27 million downloads (18K per day) • 657 OSS projects depend on it
Provides all the tools needed to build any kind of template system
Uid
6 million downloads (17K per day) • 170 OSS projects depend on it
Provides an object-oriented API to generate and represent UIDs
Notifier
7 million downloads (14K per day) • 167 OSS projects depend on it
Sends notifications via one or more channels (email, SMS, ...)
This component is backed by Mercure.rocks
Create real-time experiences in minutes! Mercure.rocks provides a realtime API service that is tightly integrated with Symfony: create UIs that update in live with UX Turbo, send notifications with the Notifier component, expose async APIs with API Platform and create low level stuffs with the Mercure component. We maintain and scale the complex infrastructure for you!
ClassLoader
52 million downloads (11K per day) • 473 OSS projects depend on it
Symfony ClassLoader Component
ORM Pack
24 million downloads (11K per day) • 430 OSS projects depend on it
A pack for the Doctrine ORM
Workflow
10 million downloads (10K per day) • 125 OSS projects depend on it
Provides tools for managing a workflow or finite state machine
RateLimiter
3 million downloads (9K per day) • 31 OSS projects depend on it
Provides a Token Bucket implementation to rate limit input and output in your application
Serializer Pack
17 million downloads (8K per day) • 186 OSS projects depend on it
A pack for the Symfony serializer
Security
18 million downloads (7K per day) • 592 OSS projects depend on it
Provides a complete security system for your web application
This component is backed by SymfonyCasts
Learn Symfony faster by watching real projects being built and actively coding along with them. SymfonyCasts bridges that learning gap, bringing you video tutorials and coding challenges. Code on!
Apache Pack
8 million downloads (7K per day) • 52 OSS projects depend on it
A pack for Apache support in Symfony
Profiler Pack
22 million downloads (6K per day) • 183 OSS projects depend on it
A pack for the Symfony web profiler
WebServer Bundle
11 million downloads (6K per day) • 337 OSS projects depend on it
Provides commands for running applications using the PHP built-in web server
Polyfill PHP 5.5
27 million downloads (5K per day) • 11 OSS projects depend on it
Symfony polyfill backporting some PHP 5.5+ features to lower PHP versions
Polyfill PHP 5.4
27 million downloads (5K per day) • 5 OSS projects depend on it
Symfony polyfill backporting some PHP 5.4+ features to lower PHP versions
Mailgun Bridge
1 million downloads (5K per day) • 23 OSS projects depend on it
Symfony Mailgun Mailer Bridge
Twig Pack
6 million downloads (4K per day) • 68 OSS projects depend on it
A Twig pack for Symfony projects
Debug Pack
13 million downloads (4K per day) • 160 OSS projects depend on it
A debug pack for Symfony projects
Amazon SES Bridge
2 million downloads (4K per day) • 15 OSS projects depend on it
Symfony Amazon Mailer Bridge
TestPack
12 million downloads (4K per day) • 238 OSS projects depend on it
A pack for functional and end-to-end testing within a Symfony app
This component is backed by Endava
Endava is reimagining the relationship between people and technology. By leveraging next-generation technologies, our agile, multi-disciplinary teams provide a combination of Product & Technology Strategies, Intelligent Experiences, and World Class Engineering to help our clients become more engaging, responsive, and efficient.
Mercure Bundle
3 million downloads (4K per day) • 20 OSS projects depend on it
Symfony MercureBundle
Amazon SQS Messenger
1 million downloads (3K per day) • 4 OSS projects depend on it
Symfony Amazon SQS extension Messenger Bridge
Sendgrid Bridge
2 million downloads (3K per day) • 11 OSS projects depend on it
Symfony Sendgrid Mailer Bridge
Panther
4 million downloads (3K per day) • 50 OSS projects depend on it
A browser testing and web scraping library for PHP and Symfony.
Postmark Bridge
470K downloads (2K per day) • 10 OSS projects depend on it
Symfony Postmark Mailer Bridge
Ldap
2 million downloads (2K per day) • 44 OSS projects depend on it
Provides a LDAP client for PHP on top of PHP's ldap extension
Mailchimp Bridge
766K downloads (2K per day) • 11 OSS projects depend on it
Symfony Mailchimp Mailer Bridge
Google Gmail Bridge
1 million downloads (2K per day) • 23 OSS projects depend on it
Symfony Google Mailer Bridge
Polyfill PHP 7.4
1 million downloads (1K per day) • 17 OSS projects depend on it
Symfony polyfill backporting some PHP 7.4+ features to lower PHP versions
Polyfill Intl MessageFormatter
801K downloads (1K per day) • 15 OSS projects depend on it
Symfony polyfill for intl's MessageFormatter class and related functions
ICU
DEPRECATED Don't use this component in new applications.
Contains an excerpt of the ICU data and classes to load it.
Symfony UX Turbo Mercure
34K downloads • 1 OSS project depend on it
Mercure bridge for Symfony UX Turbo
Loco Translation Provider
62K downloads • 1 OSS project depend on it
Symfony Loco Translation Provider Bridge
Polyfill PHP 7.1
724K downloads • 20 OSS projects depend on it
Symfony polyfill backporting some PHP 7.1+ features to lower PHP versions
Fake SMS Notifier
80K downloads • 1 OSS project depend on it
Fake SMS (as email or log during development) Notifier Bridge.
HTML Sanitizer
8K downloads
Provides an object-oriented API to sanitize untrusted HTML input for safe insertion into a document's DOM.
Polyfill XML
DEPRECATED Don't use this component in new applications.
Symfony polyfill for xml's utf8_encode and utf8_decode functions
AMQP Pack
499K downloads • 2 OSS projects depend on it
A pack for using the AMQP transport with Symfony Messenger
WebpackEncore Pack
DEPRECATED Don't use this component in new applications.
A pack for Symfony Encore
Microsoft Teams Notifier
19K downloads • 2 OSS projects depend on it
Symfony Microsoft Teams Notifier Bridge
Annotations Pack
DEPRECATED Don't use this component in new applications.
A pack for the Doctrine annotations with cache
Nexmo Notifier
DEPRECATED Don't use this component in new applications.
Symfony Nexmo Notifier Bridge
Polyfill PHP 8.2
13 downloads
Symfony polyfill backporting some PHP 8.2+ features to lower PHP versions
Fake Chat Notifier
4K downloads • 1 OSS project depend on it
Fake Chat (as email or log during development) Notifier Bridge.