Symfony Components implement common features needed to develop websites: routing, console, HTTP client, mailer, cache, etc. They are the foundation of the Symfony full-stack framework, but they can also be used standalone.
This component manages URL generation and versioning
of web assets such as CSS stylesheets, JavaScript files and image files.
Also it gives us asset()
method in templates.
composer require asset
The HttpClient component provides powerful methods to fetch HTTP resources synchronously or asynchronously.
composer require symfony/http-client
The Notifier sends notifications via one or more channels (email, SMS, ...).
composer require symfony/notifier
The security component provides a complete security system for your web application.
composer require security
The serializer component is meant to be used to turn objects into a specific format (XML, JSON, YAML, etc.) and the other way around. This command will install serializer-pack
- serializer with additional components:
composer require serializer
The string component provides a single object-oriented API to work with strings.
composer require string
In some contexts, such as URLs and file/directory names, it’s not safe to use any Unicode character. A slugger transforms a given string into another string that only includes safe ASCII characters:
use Symfony\Component\String\Slugger\AsciiSlugger;
$slugger = new AsciiSlugger();
$slug = $slugger->slug('Wôrķšƥáçè ~~sèťtïñğš~~'); // 'Workspace-settings'
The translation component provides tools to internationalize your application.
composer require symfony/translation
The validator component provides tools to validate values.
composer require validator
The workflow component provides tools for managing a workflow or finite state machine.
composer require symfony/workflow
# Generate visual representation
symfony console workflow:dump comment | dot -Tpng -o workflow.png