Symfony AssetMapper
Symfony component that maps asset directories to versioned public files and loads JavaScript through browser importmaps, without a bundler.
symfony.com/asset-mapperrepositorydocs
Symfony AssetMapper is the component that the Symfony framework uses to serve application assets without a bundler. It maps directories, such as assets/, to public paths and gives each file a version hash in its name. JavaScript modules load through a browser importmap, so one module can import another or a third-party package without a build step, and a Twig call renders the map into the page.
The component is installed with Composer. In development, the Symfony application returns the versioned URLs itself. Before deployment, the asset-map:compile command writes the final files into public/assets, where the web server serves them directly.
Worth knowing
The component does not minify assets. The project points to separate bundles for Sass, TypeScript, Tailwind CSS and minification, and to a dedicated bundle for linting.
Identity
- Status
- Active
- Maintainer
- Fabien Potencier4
- Maintained by
- Individual4
- First release
- 20238
Rendering and deploy
- Runs as
- Static files3
- Install with
- composer require symfony/asset-mapper symfony/asset symfony/twig-pack3
Releases
Adoption
Sources
- 2026-10-28: links, Built on
symfony.com/asset-mapper - 2026-10-28: links, Written in, GitHub stars
api.github.com/repos/symfony/asset-mapper - 2026-10-28: links, Install with, Runs as
symfony.com/doc/current/frontend/asset_mapper.html - 2026-10-28: Maintainer, Maintained by, License model
raw.githubusercontent.com/symfony/asset-mapper/8.2/LICENSE - 2026-10-28: Runtime, Minimum runtime
raw.githubusercontent.com/symfony/asset-mapper/v8.1.9/composer.json - 2026-10-28: Categories
raw.githubusercontent.com/symfony/asset-mapper/8.2/README.md - 2026-10-28: License, Packagist downloads, Packagist downloads a month
packagist.org/packages/symfony/asset-mapper.json - 2026-10-28: First release, Current major version, Last release
api.github.com/repos/symfony/asset-mapper/releases - 2026-10-28: Contributors
api.github.com/repos/symfony/asset-mapper/contributors - 2026-10-28: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/packagist.org/packages/symfony%2Fasset-mapper