nalabdou / dsfr-bundle
Symfony bundle for the French Government Design System (DSFR)
Requires
- php: ^8.3
- symfony/config: ^6.4 || ^7.4 || ^8.0
- symfony/dependency-injection: ^6.4 || ^7.4 || ^8.0
- symfony/form: ^6.4 || ^7.4 || ^8.0
- symfony/framework-bundle: ^6.4 || ^7.4 || ^8.0
- symfony/http-kernel: ^6.4 || ^7.4 || ^8.0
- symfony/options-resolver: ^6.4 || ^7.4 || ^8.0
- symfony/twig-bridge: ^6.4 || ^7.4 || ^8.0
- symfony/twig-bundle: ^6.4 || ^7.4 || ^8.0
- symfony/ux-twig-component: ^2.13
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- nyholm/symfony-bundle-test: ^3.0
- phpstan/extension-installer: ^1.4
- phpstan/phpstan: ^2.0
- phpstan/phpstan-strict-rules: ^2.0
- phpstan/phpstan-symfony: ^2.0
- phpunit/phpunit: ^11.0
- rector/rector: ^2.0
- symfony/browser-kit: ^6.4 || ^7.4 || ^8.0
- symfony/phpunit-bridge: ^6.4 || ^7.4 || ^8.0
This package is auto-updated.
Last update: 2026-05-13 21:24:27 UTC
README
Symfony bundle for the French Government Design System (DSFR v1.14.4), built with Symfony UX Twig Component.
WARNING: This design system is intended only for official websites of French public services. Its main purpose is to help citizens identify government websites. See the terms.
Requirements
- PHP ^8.3
- Symfony ^6.4 || ^7.4 || ^8.0
- symfony/ux-twig-component ^2.13
- DSFR assets loaded by your application
Installation
composer require nalabdou/dsfr-bundle
The application must load DSFR CSS, JavaScript, fonts and icons itself. You can use npm, AssetMapper, Webpack Encore, copied static files or a CDN for prototypes.
Configuration
dsfr: license_key: '%env(default::DSFR_BUNDLE_LICENSE)%'
Documentation
User documentation is available at:
License
Community components are Apache-2.0. Pro components require a commercial license; see the license documentation and BUY.md.