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
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
534 million downloads (502K per day) • 354 OSS projects depend on it
Symfony polyfill for the Mbstring extension
DeprecationContracts
215 million downloads (498K per day) • 176 OSS projects depend on it
A generic function and convention to trigger deprecation notices
Polyfill PHP 8.0
249 million downloads (496K per day) • 453 OSS projects depend on it
Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions
Finder
438 million downloads (472K per day) • 3,410 OSS projects depend on it
Finds files and directories via an intuitive fluent interface
Polyfill Ctype
412 million downloads (470K per day) • 85 OSS projects depend on it
Symfony polyfill for ctype functions
Console
488 million downloads (463K per day) • 9,484 OSS projects depend on it
Eases the creation of beautiful and testable command line interfaces
Process
423 million downloads (460K per day) • 4,288 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.
Polyfill Intl Normalizer
244 million downloads (449K per day) • 19 OSS projects depend on it
Symfony polyfill for intl's Normalizer class and related functions
EventDispatcher Contracts
242 million downloads (445K per day) • 181 OSS projects depend on it
Generic abstractions related to dispatching event
Service Contracts
285 million downloads (434K per day) • 95 OSS projects depend on it
Generic abstractions related to writing services
EventDispatcher
443 million downloads (418K per day) • 2,739 OSS projects depend on it
Provides tools that allow your application components to communicate with each other by dispatching events and listening to them
Polyfill PHP 8.1
96 million downloads (391K per day) • 107 OSS projects depend on it
Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions
ErrorHandler
188 million downloads (385K per day) • 246 OSS projects depend on it
Provides tools to manage errors and ease debugging PHP code
HttpKernel
343 million downloads (371K per day) • 4,815 OSS projects depend on it
Provides a structured process for converting a Request into a Response
Polyfill PHP 7.2
313 million downloads (368K per day) • 41 OSS projects depend on it
Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions
Polyfill Intl IDN
275 million downloads (368K per day) • 40 OSS projects depend on it
Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions
HttpFoundation
370 million downloads (368K per day) • 4,144 OSS projects depend on it
Defines an object-oriented layer for the HTTP specification
String
181 million downloads (368K per day) • 351 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
VarDumper
341 million downloads (357K per day) • 5,538 OSS projects depend on it
Provides mechanisms for walking through any arbitrary PHP variable
Polyfill Intl Grapheme
179 million downloads (355K per day) • 7 OSS projects depend on it
Symfony polyfill for intl's grapheme_* functions
Translation
360 million downloads (343K per day) • 1,607 OSS projects depend on it
Provides tools to internationalize your application
Polyfill PHP 7.3
272 million downloads (337K per day) • 84 OSS projects depend on it
Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions
Translation Contracts
216 million downloads (332K per day) • 164 OSS projects depend on it
Generic abstractions related to translation
Mime
209 million downloads (329K per day) • 396 OSS projects depend on it
Allows manipulating MIME messages
Filesystem
291 million downloads (322K per day) • 2,551 OSS projects depend on it
Provides basic utilities for the filesystem
Routing
329 million downloads (321K per day) • 1,275 OSS projects depend on it
Maps an HTTP request to a set of configuration variables
CssSelector
319 million downloads (316K per day) • 2,205 OSS projects depend on it
Converts CSS selectors to XPath expressions
Yaml
334 million downloads (295K per day) • 8,161 OSS projects depend on it
Loads and dumps YAML files
OptionsResolver
175 million downloads (257K per day) • 1,406 OSS projects depend on it
Provides an improved replacement for the array_replace PHP function
HttpClient Contracts
138 million downloads (197K per day) • 70 OSS projects depend on it
Generic abstractions related to HTTP clients
Polyfill Iconv
177 million downloads (188K per day) • 54 OSS projects depend on it
Symfony polyfill for the Iconv extension
Config
193 million downloads (186K per day) • 5,031 OSS projects depend on it
Helps you find, load, combine, autofill and validate configuration values of any kind
DependencyInjection
172 million downloads (178K per day) • 5,480 OSS projects depend on it
Allows you to standardize and centralize the way objects are constructed in your application
Stopwatch
138 million downloads (172K per day) • 680 OSS projects depend on it
Provides a way to profile code
Cache Contracts
82 million downloads (170K per day) • 43 OSS projects depend on it
Generic abstractions related to caching
DomCrawler
173 million downloads (164K per day) • 1,983 OSS projects depend on it
Eases DOM navigation for HTML and XML documents
Cache
108 million downloads (151K per day) • 1,410 OSS projects depend on it
Provides an extended PSR-6, PSR-16 (and tags) implementation
HttpClient
75 million downloads (147K per day) • 1,272 OSS projects depend on it
Provides powerful methods to fetch HTTP resources synchronously or asynchronously
This component is backed by Prisma Media
Prisma Media has become in 40 years the n°1 French publishing group, on print and digitally, with 20 flagship brands of the news magazines : Femme Actuelle, GEO, Capital, Gala or Télé-Loisirs… Today, more than 42 million French people are in contact with one of our brand each month, either by leafing through a magazine, surfing the web, subscribing one our mobile or tablet application or listening to our podcasts' series. Prisma Media has successfully transformed one's business model : from a historic player in the world of paper, it has become in 5 years one of the first publishers of multi-media editorial content, and one of the first creators of digital solutions.
VarExporter
96 million downloads (142K per day) • 157 OSS projects depend on it
Allows exporting any serializable PHP data structure to plain PHP code
Debug
DEPRECATED Don't use this component in new applications.
Provides tools to ease debugging PHP code
PropertyInfo
71 million downloads (131K per day) • 489 OSS projects depend on it
Extracts information about PHP class' properties using metadata of popular sources
PropertyAccess
104 million downloads (125K per day) • 1,629 OSS projects depend on it
Provides functions to read and write from/to an object or array using a simple string notation
Serializer
102 million downloads (124K per day) • 1,673 OSS projects depend on it
Handles serializing and deserializing data structures, including object graphs, into array structures or other formats like XML and JSON.
Validator
102 million downloads (115K per day) • 2,807 OSS projects depend on it
Provides tools to validate values
Polyfill UUID
48 million downloads (111K per day) • 38 OSS projects depend on it
Symfony polyfill for uuid functions
Dotenv
70 million downloads (109K per day) • 1,670 OSS projects depend on it
Registers environment variables from a .env file
BrowserKit
120 million downloads (105K per day) • 2,096 OSS projects depend on it
Simulates the behavior of a web browser, allowing you to make requests, click on links and submit forms programmatically
Monolog Bundle
114 million downloads (105K per day) • 1,744 OSS projects depend on it
Symfony MonologBundle
Polyfill Intl ICU
112 million downloads (105K per day) • 53 OSS projects depend on it
Symfony polyfill for intl's ICU-related data and classes
Framework Bundle
78 million downloads (95K per day) • 9,117 OSS projects depend on it
Provides a tight integration between Symfony components and the Symfony full-stack framework
This component is backed by alximy
A team of passionate humans from very different backgrounds, sharing our love of PHP, Symfony and its ecosystem. Our CTO, Expert developers, tech leads, can help you learn or develop the tools you need, and perform audits or tailored workshops. We value contributing to the Open Source community and are willing to mentor new contributors in our team or yours.
Security Bundle
55 million downloads (90K per day) • 1,408 OSS projects depend on it
Provides a tight integration of the Security component into the Symfony full-stack framework
ExpressionLanguage
69 million downloads (86K per day) • 1,195 OSS projects depend on it
Provides an engine that can compile and evaluate expressions
Symfony Flex
61 million downloads (84K per day) • 677 OSS projects depend on it
Composer plugin for Symfony
Twig Bridge
73 million downloads (83K per day) • 617 OSS projects depend on it
Provides integration for Twig with various Symfony components
WebProfiler Bundle
49 million downloads (81K per day) • 678 OSS projects depend on it
Provides a development tool that gives detailed information about the execution of any request
PHPUnit Bridge
82 million downloads (80K per day) • 3,697 OSS projects depend on it
Provides utilities for PHPUnit, especially user deprecation notices management
Monolog Bridge
61 million downloads (80K per day) • 215 OSS projects depend on it
Provides integration for Monolog with various Symfony components
Intl
73 million downloads (78K per day) • 749 OSS projects depend on it
Provides a PHP replacement layer for the C intl extension that includes additional data from the ICU library
Twig Bundle
62 million downloads (75K per day) • 1,908 OSS projects depend on it
Provides a tight integration of Twig into the Symfony full-stack framework
Doctrine Bridge
60 million downloads (72K per day) • 361 OSS projects depend on it
Provides integration for Doctrine with various Symfony components
Asset
56 million downloads (66K per day) • 776 OSS projects depend on it
Manages URL generation and versioning of web assets such as CSS stylesheets, JavaScript files and image files
Polyfill PHP 5.6
135 million downloads (65K per day) • 33 OSS projects depend on it
Symfony polyfill backporting some PHP 5.6+ features to lower PHP versions
Form
54 million downloads (61K per day) • 2,597 OSS projects depend on it
Allows to easily create, process and reuse HTML forms
Polyfill PHP 7.0
155 million downloads (60K per day) • 56 OSS projects depend on it
Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions
PasswordHasher
17 million downloads (59K per day) • 28 OSS projects depend on it
Provides password hashing utilities
Lock
27 million downloads (56K per day) • 240 OSS projects depend on it
Creates and manages locks, a mechanism to provide exclusive access to a shared resource
Debug Bundle
35 million downloads (53K per day) • 596 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
Maker Bundle
37 million downloads (50K per day) • 457 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.
Guard
42 million downloads (50K per day) • 51 OSS projects depend on it
Symfony Security Component - Guard
Messenger
25 million downloads (45K per day) • 466 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.
WebLink
29 million downloads (40K per day) • 194 OSS projects depend on it
Manages links between resources
Inflector
DEPRECATED Don't use this component in new applications.
Converts words between their singular and plural forms (English only)
Doctrine Messenger
14 million downloads (37K per day) • 34 OSS projects depend on it
Symfony Doctrine Messenger Bridge
Templating
29 million downloads (31K per day) • 661 OSS projects depend on it
Provides all the tools needed to build any kind of template system
Uid
8 million downloads (31K per day) • 189 OSS projects depend on it
Provides an object-oriented API to generate and represent UIDs
AMQP Messenger
14 million downloads (30K per day) • 16 OSS projects depend on it
Symfony AMQP extension Messenger Bridge
Redis Messenger
13 million downloads (30K per day) • 8 OSS projects depend on it
Symfony Redis extension Messenger Bridge
Runtime
8 million downloads (27K per day) • 144 OSS projects depend on it
Enables decoupling PHP applications from global state
Polyfill APCu
60 million downloads (25K per day) • 185 OSS projects depend on it
Symfony polyfill backporting apcu_* functions to lower PHP versions
WebpackEncore Bundle
18 million downloads (23K per day) • 267 OSS projects depend on it
Integration with your Symfony app & Webpack Encore!
Contracts
43 million downloads (22K per day) • 82 OSS projects depend on it
A set of abstractions extracted out of the Symfony components
Workflow
11 million downloads (22K per day) • 128 OSS projects depend on it
Provides tools for managing a workflow or finite state machine
This component is backed by ZEturf
The ZEturf group is an online gaming operator licensed in 6 markets in Europe and Africa. It operates two brands, ZEturf on horse racing betting, and ZEbet on sports betting. In parallel with the development of its betting activities, the group is also investing in Entertainment / gaming with Free-to-Play and Play-to-Earn projects.
Notifier
8 million downloads (20K per day) • 182 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!
RateLimiter
4 million downloads (19K per day) • 34 OSS projects depend on it
Provides a Token Bucket implementation to rate limit input and output in your application
Polyfill Util
112 million downloads (18K per day) • 5 OSS projects depend on it
Symfony utilities for portability of PHP codes
Apache Pack
8 million downloads (12K per day) • 54 OSS projects depend on it
A pack for Apache support in Symfony
ORM Pack
25 million downloads (10K per day) • 433 OSS projects depend on it
A pack for the Doctrine ORM
ClassLoader
52 million downloads (10K per day) • 472 OSS projects depend on it
Symfony ClassLoader Component
Security
18 million downloads (9K per day) • 583 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!
Serializer Pack
17 million downloads (9K per day) • 191 OSS projects depend on it
A pack for the Symfony serializer
Profiler Pack
23 million downloads (8K per day) • 184 OSS projects depend on it
A pack for the Symfony web profiler
Mailgun Bridge
2 million downloads (8K per day) • 24 OSS projects depend on it
Symfony Mailgun Mailer Bridge
Polyfill PHP 5.5
28 million downloads (5K per day) • 11 OSS projects depend on it
Symfony polyfill backporting some PHP 5.5+ features to lower PHP versions
WebServer Bundle
12 million downloads (5K per day) • 333 OSS projects depend on it
Provides commands for running applications using the PHP built-in web server
Debug Pack
13 million downloads (5K per day) • 156 OSS projects depend on it
A debug pack for Symfony projects
Panther
4 million downloads (5K per day) • 55 OSS projects depend on it
A browser testing and web scraping library for PHP and Symfony.
Amazon SQS Messenger
1 million downloads (5K per day) • 4 OSS projects depend on it
Symfony Amazon SQS extension Messenger Bridge
TestPack
12 million downloads (5K per day) • 247 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.
Postmark Bridge
733K downloads (5K per day) • 10 OSS projects depend on it
Symfony Postmark Mailer Bridge
Polyfill PHP 5.4
27 million downloads (4K per day) • 5 OSS projects depend on it
Symfony polyfill backporting some PHP 5.4+ features to lower PHP versions
Twig Pack
6 million downloads (4K per day) • 65 OSS projects depend on it
A Twig pack for Symfony projects
Amazon SES Bridge
2 million downloads (4K per day) • 16 OSS projects depend on it
Symfony Amazon Mailer Bridge
Mercure Bundle
3 million downloads (3K per day) • 22 OSS projects depend on it
Symfony MercureBundle
Sendgrid Bridge
2 million downloads (3K per day) • 11 OSS projects depend on it
Symfony Sendgrid Mailer Bridge
Mailchimp Bridge
928K downloads (3K per day) • 11 OSS projects depend on it
Symfony Mailchimp 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
Google Gmail Bridge
1 million downloads (2K per day) • 23 OSS projects depend on it
Symfony Google Mailer Bridge
Polyfill PHP 7.4
2 million downloads (2K per day) • 20 OSS projects depend on it
Symfony polyfill backporting some PHP 7.4+ features to lower PHP versions
Polyfill Intl MessageFormatter
1 million downloads (2K per day) • 15 OSS projects depend on it
Symfony polyfill for intl's MessageFormatter class and related functions
Slack Notifier
684K downloads (2K per day) • 4 OSS projects depend on it
Symfony Slack Notifier Bridge
Mailjet Bridge
444K downloads (1K per day) • 7 OSS projects depend on it
Symfony Mailjet Mailer Bridge
HTML Sanitizer
44K downloads • 9 OSS projects depend on it
Provides an object-oriented API to sanitize untrusted HTML input for safe insertion into a document's DOM.
ICU
DEPRECATED Don't use this component in new applications.
Contains an excerpt of the ICU data and classes to load it.
Loco Translation Provider
87K downloads • 1 OSS project depend on it
Symfony Loco Translation Provider Bridge
Fake SMS Notifier
106K downloads • 1 OSS project depend on it
Fake SMS (as email or log during development) Notifier Bridge.
Polyfill PHP 8.2
7K downloads • 7 OSS projects depend on it
Symfony polyfill backporting some PHP 8.2+ features to lower PHP versions
Polyfill PHP 7.1
739K downloads • 20 OSS projects depend on it
Symfony polyfill backporting some PHP 7.1+ features to lower PHP versions
AMQP Pack
512K downloads • 2 OSS projects depend on it
A pack for using the AMQP transport with Symfony Messenger
Polyfill XML
DEPRECATED Don't use this component in new applications.
Symfony polyfill for xml's utf8_encode and utf8_decode functions
Microsoft Teams Notifier
29K downloads • 2 OSS projects depend on it
Symfony Microsoft Teams Notifier Bridge
Beanstalkd Messenger
35K downloads • 2 OSS projects depend on it
Symfony Beanstalkd Messenger Bridge
WebpackEncore Pack
DEPRECATED Don't use this component in new applications.
A pack for Symfony Encore
OhMySMTP Bridge
DEPRECATED Don't use this component in new applications.
Symfony OhMySMTP Mailer Bridge
Annotations Pack
DEPRECATED Don't use this component in new applications.
A pack for the Doctrine annotations with cache
Symfony UX Turbo Mercure
44K downloads • 1 OSS project depend on it
Mercure bridge for Symfony UX Turbo
Fake Chat Notifier
5K downloads • 1 OSS project depend on it
Fake Chat (as email or log during development) Notifier Bridge.
Nexmo Notifier
DEPRECATED Don't use this component in new applications.
Symfony Nexmo Notifier Bridge