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
531 million downloads (539K per day) • 353 OSS projects depend on it
Symfony polyfill for the Mbstring extension
DeprecationContracts
213 million downloads (521K per day) • 176 OSS projects depend on it
A generic function and convention to trigger deprecation notices
Polyfill Ctype
409 million downloads (512K per day) • 85 OSS projects depend on it
Symfony polyfill for ctype functions
Polyfill Intl Normalizer
242 million downloads (510K per day) • 19 OSS projects depend on it
Symfony polyfill for intl's Normalizer class and related functions
Polyfill PHP 8.0
247 million downloads (506K per day) • 454 OSS projects depend on it
Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions
Console
485 million downloads (454K per day) • 9,469 OSS projects depend on it
Eases the creation of beautiful and testable command line interfaces
EventDispatcher
441 million downloads (454K per day) • 2,740 OSS projects depend on it
Provides tools that allow your application components to communicate with each other by dispatching events and listening to them
Process
422 million downloads (445K per day) • 4,279 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.
Finder
436 million downloads (442K per day) • 3,405 OSS projects depend on it
Finds files and directories via an intuitive fluent interface
Service Contracts
282 million downloads (440K per day) • 95 OSS projects depend on it
Generic abstractions related to writing services
EventDispatcher Contracts
240 million downloads (423K per day) • 179 OSS projects depend on it
Generic abstractions related to dispatching event
String
179 million downloads (422K per day) • 350 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
Polyfill Intl IDN
273 million downloads (408K per day) • 40 OSS projects depend on it
Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions
Polyfill Intl Grapheme
178 million downloads (407K per day) • 7 OSS projects depend on it
Symfony polyfill for intl's grapheme_* functions
HttpFoundation
368 million downloads (396K per day) • 4,141 OSS projects depend on it
Defines an object-oriented layer for the HTTP specification
Polyfill PHP 7.2
311 million downloads (393K per day) • 41 OSS projects depend on it
Symfony polyfill backporting some PHP 7.2+ features to lower PHP versions
Translation
359 million downloads (390K per day) • 1,607 OSS projects depend on it
Provides tools to internationalize your application
HttpKernel
342 million downloads (388K per day) • 4,814 OSS projects depend on it
Provides a structured process for converting a Request into a Response
Translation Contracts
214 million downloads (374K per day) • 163 OSS projects depend on it
Generic abstractions related to translation
ErrorHandler
187 million downloads (367K per day) • 246 OSS projects depend on it
Provides tools to manage errors and ease debugging PHP code
VarDumper
340 million downloads (367K per day) • 5,527 OSS projects depend on it
Provides mechanisms for walking through any arbitrary PHP variable
Mime
208 million downloads (352K per day) • 395 OSS projects depend on it
Allows manipulating MIME messages
CssSelector
318 million downloads (347K per day) • 2,205 OSS projects depend on it
Converts CSS selectors to XPath expressions
Polyfill PHP 7.3
271 million downloads (340K per day) • 84 OSS projects depend on it
Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions
Routing
328 million downloads (302K per day) • 1,275 OSS projects depend on it
Maps an HTTP request to a set of configuration variables
Polyfill PHP 8.1
94 million downloads (300K per day) • 106 OSS projects depend on it
Symfony polyfill backporting some PHP 8.1+ features to lower PHP versions
Filesystem
289 million downloads (266K per day) • 2,550 OSS projects depend on it
Provides basic utilities for the filesystem
Yaml
333 million downloads (256K per day) • 8,162 OSS projects depend on it
Loads and dumps YAML files
OptionsResolver
174 million downloads (242K per day) • 1,404 OSS projects depend on it
Provides an improved replacement for the array_replace PHP function
Config
192 million downloads (223K per day) • 5,032 OSS projects depend on it
Helps you find, load, combine, autofill and validate configuration values of any kind
Polyfill Iconv
177 million downloads (208K per day) • 54 OSS projects depend on it
Symfony polyfill for the Iconv extension
Stopwatch
137 million downloads (199K per day) • 680 OSS projects depend on it
Provides a way to profile code
DependencyInjection
171 million downloads (180K per day) • 5,478 OSS projects depend on it
Allows you to standardize and centralize the way objects are constructed in your application
HttpClient Contracts
137 million downloads (177K per day) • 70 OSS projects depend on it
Generic abstractions related to HTTP clients
VarExporter
96 million downloads (161K per day) • 156 OSS projects depend on it
Allows exporting any serializable PHP data structure to plain PHP code
HttpClient
74 million downloads (161K per day) • 1,269 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.
Cache
107 million downloads (146K per day) • 1,407 OSS projects depend on it
Provides an extended PSR-6, PSR-16 (and tags) implementation
Serializer
101 million downloads (141K 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.
PropertyAccess
103 million downloads (138K 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
PropertyInfo
71 million downloads (134K per day) • 491 OSS projects depend on it
Extracts information about PHP class' properties using metadata of popular sources
Debug
DEPRECATED Don't use this component in new applications.
Provides tools to ease debugging PHP code
DomCrawler
172 million downloads (123K per day) • 1,982 OSS projects depend on it
Eases DOM navigation for HTML and XML documents
Validator
101 million downloads (123K per day) • 2,806 OSS projects depend on it
Provides tools to validate values
Cache Contracts
82 million downloads (118K per day) • 43 OSS projects depend on it
Generic abstractions related to caching
Polyfill UUID
48 million downloads (102K per day) • 38 OSS projects depend on it
Symfony polyfill for uuid functions
BrowserKit
119 million downloads (95K per day) • 2,098 OSS projects depend on it
Simulates the behavior of a web browser, allowing you to make requests, click on links and submit forms programmatically
Polyfill Intl ICU
112 million downloads (95K per day) • 53 OSS projects depend on it
Symfony polyfill for intl's ICU-related data and classes
Twig Bridge
73 million downloads (92K per day) • 617 OSS projects depend on it
Provides integration for Twig with various Symfony components
Intl
72 million downloads (89K per day) • 748 OSS projects depend on it
Provides a PHP replacement layer for the C intl extension that includes additional data from the ICU library
PHPUnit Bridge
82 million downloads (87K per day) • 3,697 OSS projects depend on it
Provides utilities for PHPUnit, especially user deprecation notices management
Framework Bundle
78 million downloads (84K per day) • 9,113 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.
Twig Bundle
62 million downloads (83K per day) • 1,908 OSS projects depend on it
Provides a tight integration of Twig into the Symfony full-stack framework
Monolog Bridge
61 million downloads (81K per day) • 215 OSS projects depend on it
Provides integration for Monolog with various Symfony components
Dotenv
70 million downloads (79K per day) • 1,670 OSS projects depend on it
Registers environment variables from a .env file
Monolog Bundle
114 million downloads (76K per day) • 1,744 OSS projects depend on it
Symfony MonologBundle
Asset
56 million downloads (74K per day) • 774 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 (74K per day) • 33 OSS projects depend on it
Symfony polyfill backporting some PHP 5.6+ features to lower PHP versions
Security Bundle
54 million downloads (73K per day) • 1,409 OSS projects depend on it
Provides a tight integration of the Security component into the Symfony full-stack framework
ExpressionLanguage
69 million downloads (72K per day) • 1,195 OSS projects depend on it
Provides an engine that can compile and evaluate expressions
Polyfill PHP 7.0
155 million downloads (65K per day) • 56 OSS projects depend on it
Symfony polyfill backporting some PHP 7.0+ features to lower PHP versions
PasswordHasher
17 million downloads (63K per day) • 28 OSS projects depend on it
Provides password hashing utilities
Symfony Flex
61 million downloads (61K per day) • 675 OSS projects depend on it
Composer plugin for Symfony
Doctrine Bridge
59 million downloads (61K per day) • 361 OSS projects depend on it
Provides integration for Doctrine with various Symfony components
Guard
42 million downloads (57K per day) • 51 OSS projects depend on it
Symfony Security Component - Guard
Lock
26 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
WebProfiler Bundle
48 million downloads (53K per day) • 678 OSS projects depend on it
Provides a development tool that gives detailed information about the execution of any request
Messenger
25 million downloads (50K per day) • 465 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.
Form
53 million downloads (49K per day) • 2,600 OSS projects depend on it
Allows to easily create, process and reuse HTML forms
Maker Bundle
37 million downloads (47K 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.
WebLink
29 million downloads (42K 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)
Debug Bundle
35 million downloads (39K 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
Redis Messenger
13 million downloads (34K per day) • 8 OSS projects depend on it
Symfony Redis extension Messenger Bridge
Doctrine Messenger
14 million downloads (31K per day) • 35 OSS projects depend on it
Symfony Doctrine Messenger Bridge
Runtime
8 million downloads (31K per day) • 142 OSS projects depend on it
Enables decoupling PHP applications from global state
Templating
29 million downloads (28K per day) • 662 OSS projects depend on it
Provides all the tools needed to build any kind of template system
AMQP Messenger
14 million downloads (28K per day) • 16 OSS projects depend on it
Symfony AMQP extension Messenger Bridge
WebpackEncore Bundle
18 million downloads (27K per day) • 265 OSS projects depend on it
Integration with your Symfony app & Webpack Encore!
Polyfill APCu
59 million downloads (24K per day) • 186 OSS projects depend on it
Symfony polyfill backporting apcu_* functions to lower PHP versions
Uid
8 million downloads (23K per day) • 187 OSS projects depend on it
Provides an object-oriented API to generate and represent UIDs
Contracts
43 million downloads (19K per day) • 82 OSS projects depend on it
A set of abstractions extracted out of the Symfony components
Polyfill Util
112 million downloads (19K per day) • 5 OSS projects depend on it
Symfony utilities for portability of PHP codes
Workflow
11 million downloads (18K 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.
RateLimiter
4 million downloads (18K per day) • 34 OSS projects depend on it
Provides a Token Bucket implementation to rate limit input and output in your application
Notifier
8 million downloads (17K per day) • 181 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!
ORM Pack
25 million downloads (10K per day) • 433 OSS projects depend on it
A pack for the Doctrine ORM
Security
18 million downloads (10K 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!
Mailgun Bridge
2 million downloads (9K per day) • 24 OSS projects depend on it
Symfony Mailgun Mailer Bridge
Apache Pack
8 million downloads (9K per day) • 54 OSS projects depend on it
A pack for Apache support in Symfony
ClassLoader
52 million downloads (8K per day) • 472 OSS projects depend on it
Symfony ClassLoader Component
Serializer Pack
17 million downloads (8K per day) • 191 OSS projects depend on it
A pack for the Symfony serializer
Postmark Bridge
711K downloads (8K per day) • 10 OSS projects depend on it
Symfony Postmark Mailer Bridge
Profiler Pack
23 million downloads (6K per day) • 184 OSS projects depend on it
A pack for the Symfony web profiler
Polyfill PHP 5.5
28 million downloads (6K 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 (6K per day) • 333 OSS projects depend on it
Provides commands for running applications using the PHP built-in web server
Polyfill PHP 5.4
27 million downloads (6K per day) • 5 OSS projects depend on it
Symfony polyfill backporting some PHP 5.4+ features to lower PHP versions
Polyfill Intl MessageFormatter
1 million downloads (5K per day) • 15 OSS projects depend on it
Symfony polyfill for intl's MessageFormatter class and related functions
Mercure Bundle
3 million downloads (5K per day) • 22 OSS projects depend on it
Symfony MercureBundle
Amazon SQS Messenger
1 million downloads (4K per day) • 4 OSS projects depend on it
Symfony Amazon SQS extension Messenger Bridge
Panther
4 million downloads (4K per day) • 55 OSS projects depend on it
A browser testing and web scraping library for PHP and Symfony.
Sendgrid Bridge
2 million downloads (4K per day) • 11 OSS projects depend on it
Symfony Sendgrid Mailer Bridge
Amazon SES Bridge
2 million downloads (4K per day) • 16 OSS projects depend on it
Symfony Amazon Mailer Bridge
TestPack
12 million downloads (4K 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.
Debug Pack
13 million downloads (3K per day) • 156 OSS projects depend on it
A debug pack for Symfony projects
Twig Pack
6 million downloads (3K per day) • 65 OSS projects depend on it
A Twig pack for Symfony projects
Mailchimp Bridge
914K 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
Mailjet Bridge
438K downloads (2K per day) • 7 OSS projects depend on it
Symfony Mailjet 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
2 million downloads (2K per day) • 20 OSS projects depend on it
Symfony polyfill backporting some PHP 7.4+ features to lower PHP versions
Slack Notifier
676K downloads (2K per day) • 4 OSS projects depend on it
Symfony Slack Notifier Bridge
HTML Sanitizer
41K 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
85K downloads • 1 OSS project depend on it
Symfony Loco Translation Provider Bridge
Fake SMS Notifier
105K downloads • 1 OSS project depend on it
Fake SMS (as email or log during development) Notifier Bridge.
Polyfill PHP 8.2
5K downloads • 7 OSS projects depend on it
Symfony polyfill backporting some PHP 8.2+ features to lower PHP versions
Polyfill PHP 7.1
738K downloads • 20 OSS projects depend on it
Symfony polyfill backporting some PHP 7.1+ features to lower PHP versions
OhMySMTP Bridge
DEPRECATED Don't use this component in new applications.
Symfony OhMySMTP Mailer Bridge
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
28K downloads • 2 OSS projects depend on it
Symfony Microsoft Teams Notifier Bridge
AMQP Pack
512K downloads • 2 OSS projects depend on it
A pack for using the AMQP transport with Symfony Messenger
Symfony UX Turbo Mercure
44K downloads • 1 OSS project depend on it
Mercure bridge for Symfony UX Turbo
Beanstalkd Messenger
34K 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
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
Fake Chat Notifier
5K downloads • 1 OSS project depend on it
Fake Chat (as email or log during development) Notifier Bridge.