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:

$ composer require

All Symfony Components (129)

Polyfill Mbstring

Provides a partial, native PHP implementation for the Mbstring extension.

Source code

Polyfill Ctype

Provides a partial, native PHP implementation for the ctype extension.

Source code

Console

Eases the creation of beautiful and testable command line interfaces.

Source code Read its docs

Les-Tilleuls.coop is a team of 50+ Symfony experts who can help you design, develop and fix your projects. We provide a wide range of professional services including development, consulting, coaching, training and audits. We also are highly skilled in JS, Go and DevOps. We are a worker cooperative!

Polyfill PHP 8.0

Implements certain PHP 8.0 features in pure PHP code so you can use them when using an earlier PHP version in your project.

Source code

Polyfill Intl Normalizer

Provides a fallback implementation for the Normalizer class provided by the Intl extension.

Source code

Finder

Finds files and directories via an intuitive fluent interface.

Source code Read its docs

Process

Executes commands in sub-processes.

Source code Read its docs

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 PHP 7.3

Implements certain PHP 7.3 features in pure PHP code so you can use them when using an earlier PHP version in your project.

Source code

EventDispatcher

Implements the Mediator pattern in a simple and effective way to make projects truly extensible.

Source code Read its docs

Polyfill PHP 7.2

Implements certain PHP 7.2 features in pure PHP code so you can use them when using an earlier PHP version in your project.

Source code

HttpFoundation

Defines an object-oriented layer for the HTTP specification.

Source code Read its docs

Laravel is a PHP web development framework that is passionate about maximum developer happiness. Laravel is built using a variety of bespoke and Symfony based components.

Polyfill Intl IDN

Provides a collection of functions related to IDN when the Intl extension is not installed.

Source code

VarDumper

Provides mechanisms for walking through any arbitrary PHP variable.

Source code Read its docs

String

Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way. It also provides a slugger and an inflector.

Source code Read its docs

Polyfill Intl Grapheme

Provides a partial, native PHP implementation of the Grapheme functions from the Intl extension.

Source code

HttpKernel

Provides the building blocks to create flexible and fast HTTP-based frameworks.

Source code Read its docs

Les-Tilleuls.coop is a team of 50+ Symfony experts who can help you design, develop and fix your projects. We provide a wide range of professional services including development, consulting, coaching, training and audits. We also are highly skilled in JS, Go and DevOps. We are a worker cooperative!

Translation

Provides tools to internationalize your application.

Source code Read its docs

Routing

Maps an HTTP request to a set of configuration variables.

Source code Read its docs

CssSelector

Converts CSS selectors to XPath expressions.

Source code Read its docs

Mime

Allows manipulating MIME messages, used to create advanced email messages.

Source code Read its docs

ErrorHandler

Provides tools to manage errors and ease debugging PHP code.

Source code

Filesystem

Provides basic utilities for the filesystem.

Source code Read its docs

Yaml

Loads and dumps YAML files.

Source code Read its docs

Polyfill PHP 8.1

Implements certain PHP 8.1 features in pure PHP code so you can use them when using an earlier PHP version in your project.

Source code

Polyfill Iconv

Provides a native PHP implementation of the php.net/iconv functions.

Source code

OptionsResolver

Helps you configuring objects with option arrays.

Source code Read its docs

Config

Helps you find, load, combine, autofill and validate configuration values.

Source code Read its docs

DependencyInjection

Allows you to standardize and centralize the way objects are constructed in your application.

Source code Read its docs

Debug

DEPRECATED Don't use this component in new applications.

Provides tools to ease debugging PHP code. This component is deprecated since Symfony 4.4, use the ErrorHandler component instead.

Source code

Stopwatch

Provides a way to profile code.

Source code Read its docs

VarExporter

Exports any serializable PHP data structure to plain PHP code and allows to instantiate and populate objects without calling their constructors.

Source code Read its docs

Cache

Implements PSR-6 and PSR-16 caching mechanisms and provides adapters for popular caching backends (Redis, Memcache, APCu, etc.)

Source code Read its docs

DomCrawler

Eases DOM navigation for HTML and XML documents.

Source code Read its docs

HttpClient

A low-level HTTP client with support for both PHP stream wrappers and cURL. It also provides utilities to consume APIs.

Source code Read its docs

Klaxoon is a platform that empowers organizations to run effective and productive workshops easily in a hybrid environment. Anytime, Anywhere.

PropertyAccess

Provides function to read and write from/to an object or array using a simple string notation.

Source code Read its docs

Serializer

Turns objects into a specific format (XML, JSON, Yaml, ...) and the other way around.

Source code Read its docs

PropertyInfo

Extracts information about the properties of PHP classes using metadata of popular sources (Doctrine, PHP Reflection, PHPdoc, etc.)

Source code Read its docs

Validator

Provides tools to validate classes.

Source code Read its docs

BrowserKit

Simulates the behavior of a web browser.

Source code Read its docs

Dotenv

Parses .env files to make environment variables stored in them accessible via getenv(), $_ENV or $_SERVER.

Source code Read its docs

Polyfill Intl ICU

Provides a collection of functions/classes using the symfony/intl package when the Intl extension is not installed.

Source code

Polyfill UUID

Provides a native PHP implementation for the UUID extension.

Source code

Polyfill PHP 7.0

Implements certain PHP 7.0 features in pure PHP code so you can use them when using an earlier PHP version in your project.

Source code

PHPUnit Bridge

Provides utilities to report legacy tests and usage of deprecated code and a helper for time-sensitive tests.

Source code Read its docs

Intl

Provides fallback code to handle cases when the intl extension is missing.

Source code Read its docs

ExpressionLanguage

Provides an engine that can compile and evaluate expressions.

Source code Read its docs

Polyfill PHP 5.6

Implements certain PHP 5.6 features in pure PHP code so you can use them when using an earlier PHP version in your project.

Source code

Asset

Manages URL generation and versioning of web assets such as CSS stylesheets, JavaScript files and image files.

Source code Read its docs

Form

Provides tools to easy creating, processing and reusing HTML forms.

Source code Read its docs

Guard

Brings many layers of authentication together, making it much easier to create complex authentication systems where you have total control.

Source code

PasswordHasher

Provides secure password hashing utilities.

Source code Read its docs

Mailer

Helps sending emails and provides integration with the most popular mailing services.

Source code Read its docs

Lock

Creates and manages locks, a mechanism to provide exclusive access to a shared resource.

Source code Read its docs

Inflector

DEPRECATED Don't use this component in new applications.

Converts English words between their singular and plural forms. This component is deprecated since Symfony 5.1, use the String component instead.

Source code Read its docs

WebLink

Implements HTML5 Links, Preload and Resource Hints specifications to advise clients (browsers) to preload and prefetch documents through HTTP and HTTP/2 pushes.

Source code Read its docs

Messenger

Helps applications send and receive messages to/from other applications or via message queues.

Source code Read its docs

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.

Templating

Provides all the tools needed to build any kind of template system.

Source code

Polyfill APCu

Provides apcu_* functions and the APCUIterator class to users of the legacy APC extension.

Source code

Polyfill Util

Provides binary-safe string functions, using the mbstring extension when available.

Source code

Contracts

A set of abstractions extracted out of the Symfony components.

Source code Read its docs

Runtime

Decouples the bootstrapping logic from any global state to make sure the application can run with runtimes like PHP-FPM, ReactPHP, Swoole, etc. without any changes.

Source code Read its docs

Uid

Provides tools to work with unique identifiers such as UUIDs and ULIDs.

Source code Read its docs

Notifier

Sends notifications via one or more channels (email, SMS, Slack, Telegram, ...)

Source code Read its docs

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!

Workflow

Provides tools for managing a workflow or finite state machine.

Source code Read its docs

ClassLoader

DEPRECATED Don't use this component in new applications.

Loads your project classes automatically if they follow some standard PHP conventions. This component is deprecated since Symfony 3.3, use Composer class loading instead.

Source code

RateLimiter

Provides a Token Bucket implementation to rate limit input and output in your application (e.g. to implement login throttling).

Source code

Security

Provides an infrastructure for sophisticated authorization systems.

Source code Read its docs

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!

Polyfill PHP 5.5

Implements certain PHP 5.5 features in pure PHP code so you can use them when using an earlier PHP version in your project.

Source code

Polyfill PHP 5.4

Implements certain PHP 5.4 features in pure PHP code so you can use them when using an earlier PHP version in your project.

Source code

Amazon SES Bridge

Provides Amazon SES integration for Symfony Mailer.

Source code Read its docs

Sendgrid Bridge

Provides Sendgrid integration for Symfony Mailer.

Source code Read its docs

Polyfill PHP 7.4

Implements certain PHP 7.4 features in pure PHP code so you can use them when using an earlier PHP version in your project.

Source code

Ldap

Provides an LDAP client for PHP on top of PHP's ldap extension.

Source code Read its docs

Mailgun Bridge

Provides Mailgun integration for Symfony Mailer.

Source code Read its docs

Google Gmail Bridge

Provides Google Gmail integration for Symfony Mailer.

Source code Read its docs

Mailchimp Bridge

Provides Mandrill integration for Symfony Mailer.

Source code Read its docs

Polyfill Intl MessageFormatter

Provides a fallback implementation for the MessageFormatter class provided by the Intl extension.

Source code

Semaphore

Creates and manages semaphores, a mechanism to control access to a common resource by multiple processes in a concurrent system .

Source code

Slack Notifier

Provides Slack integration for Symfony Notifier.

Source code Read its docs

Mailjet Bridge

Provides Mailjet integration for Symfony Mailer.

Source code Read its docs

Postmark Bridge

Provides Postmark integration for Symfony Mailer.

Source code Read its docs

Icu

DEPRECATED Don't use this component in new applications.

Contains the data of the ICU library in a specific version. This component is deprecated since Symfony 2.6, use the Intl component instead.

Source code

Polyfill PHP 7.1

Implements certain PHP 7.1 features in pure PHP code so you can use them when using an earlier PHP version in your project.

Source code

Sendinblue Bridge

Provides Sendinblue integration for Symfony Mailer.

Source code Read its docs

Twilio Notifier

Provides Twilio integration for Symfony Notifier.

Source code Read its docs

Telegram Notifier

Provides Telegram integration for Symfony Notifier.

Source code Read its docs

Fake SMS Notifier

Provides Fake SMS integration for Symfony Notifier.

Source code Read its docs

Loco Translation Provider

Provides Loco integration for Symfony Translation.

Source code Read its docs

Discord Notifier

Provides Discord integration for Symfony Notifier.

Source code Read its docs

Firebase Notifier

Provides Firebase integration for Symfony Notifier.

Source code Read its docs

Locale

DEPRECATED Don't use this component in new applications.

Provides fallback code to handle cases when the intl extension is missing. This component is deprecated since Symfony 2.3, use the Intl component instead.

Source code

Polyfill Xml

DEPRECATED Don't use this component in new applications.

Provides a fallback implementation for the following functions in the abscense of the XML extension. This component is deprecated, use the Polyfill PHP 7.2 component instead.

Source code

Crowdin Translation Provider

Provides Crowdin integration for Symfony Translation.

Source code Read its docs

Crowdin is a cloud-based localization management software helping teams to go global and stay agile.

OvhCloud Notifier

Provides OvhCloud integration for Symfony Notifier.

Source code Read its docs

Infobip Notifier

Provides Infobip integration for Symfony Notifier.

Source code Read its docs

Microsoft Teams Notifier

Provides Microsoft Teams integration for Symfony Notifier.

Source code Read its docs

Nexmo Notifier

Provides Nexmo integration for Symfony Notifier.

Source code Read its docs

Lokalise Translation Provider

Provides Lokalise integration for Symfony Translation.

Source code Read its docs

Lokalise is a continuous localization and translation management platform. It integrates into your development workflow so you can ship localized products, faster.

Mattermost Notifier

Provides Mattermost integration for Symfony Notifier.

Source code Read its docs

Sendinblue Notifier

Provides Sendinblue integration for Symfony Notifier.

Source code Read its docs

Esendex Notifier

Provides Esendex integration for Symfony Notifier.

Source code Read its docs

RocketChat Notifier

Provides RocketChat integration for Symfony Notifier.

Source code Read its docs

SMSAPI Notifier

Provides Smsapi integration for Symfony Notifier.

Source code Read its docs

Sinch Notifier

Provides Sinch integration for Symfony Notifier.

Source code Read its docs

AllMySms Notifier

Provides AllMySms integration for Symfony Notifier.

Source code Read its docs

Free Mobile Notifier

Provides Free Mobile integration for Symfony Notifier.

Source code Read its docs

Google Chat Notifier

Provides Google Chat integration for Symfony Notifier.

Source code Read its docs

Fake Chat Notifier

Provides Fake Chat integration for Symfony Notifier.

Source code Read its docs

Mailjet Notifier

Provides Mailjet SMS integration for Symfony Notifier.

Source code Read its docs

Mercure Notifier

Provides Mercure integration for Symfony Notifier.

Source code Read its docs

MessageBird Notifier

Provides MessageBird integration for Symfony Notifier.

Source code Read its docs

Amazon Notifier

Provides Amazon SNS integration for Symfony Notifier.

Source code Read its docs

Clickatell Notifier

Provides Clickatell integration for Symfony Notifier.

Source code Read its docs

GatewayApi Notifier

Provides GatewayApi integration for Symfony Notifier.

Source code Read its docs

Gitter Notifier

Provides Gitter integration for Symfony Notifier.

Source code Read its docs

Iqsms Notifier

Provides Iqsms integration for Symfony Notifier.

Source code Read its docs

LightSms Notifier

Provides LightSms integration for Symfony Notifier.

Source code Read its docs

LinkedIn Notifier

Provides LinkedIn integration for Symfony Notifier.

Source code Read its docs

MessageMedia Notifier

Provides MessageMedia integration for Symfony Notifier.

Source code Read its docs

Mobyt Notifier

Provides Mobyt integration for Symfony Notifier.

Source code Read its docs

Octopush Notifier

Provides Octopush integration for Symfony Notifier.

Source code Read its docs

OhMySMTP Bridge

Provides OhMySMTP integration for Symfony Mailer.

Source code Read its docs

SMSC Notifier

Provides SMSC integration for Symfony Notifier.

Source code Read its docs

SmsBiuras Notifier

Provides SmsBiuras integration for Symfony Notifier.

Source code Read its docs

Spot-Hit Notifier

Provides Spot-Hit integration for Symfony Notifier.

Source code Read its docs

Telnyx Notifier

Provides Telnyx integration for Symfony Notifier.

Source code Read its docs

TurboSms Notifier

Provides TurboSms integration for Symfony Notifier.

Source code Read its docs

Yunpian Notifier

Provides Yunpian integration for Symfony Notifier.

Source code Read its docs

Zulip Notifier

Provides Zulip integration for Symfony Notifier.

Source code Read its docs