# symfony/asset

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

Repository: https://github.com/symfony/asset
Canonical: https://ross.abutalabs.com/products/asset
Homepage: https://symfony.com/asset
Language: PHP
License: MIT
License Family: permissive
Topics: php, symfony, component, symfony-component
Last push: 2026-08-14T13:23:14+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 97, release rhythm 86, longevity 100
- inputs: {"age_days": 4222, "days_push": 19, "days_rel": 96, "gap_med": 11.0, "n_releases_24m": 19}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3148, forks 12 (observed 2026-08-28T04:07:46.092018+00:00)

## What it is
A Symfony PHP component that manages URL generation and versioning of web assets such as CSS, JavaScript, and image files. It supports asset packages, versioning strategies for cache busting, base path relocation, and multiple CDN support.

## Use cases
- generate URLs for css and javascript files in php templates
- version static assets to bust browser cache
- serve assets from multiple CDNs
- move asset files without updating every template
- group assets into packages with a common base path

## When to choose
- you're building a PHP or Symfony web app and need consistent asset URL handling
- you need cache-busting versioning strategies for static files
- you want to serve assets from one or more CDNs

## When to avoid
- you're using a frontend bundler like Webpack Encore or Vite that already handles asset URLs and hashing
- your app is extremely simple and hard-coded asset paths are fine
- you're not working in PHP

## Facets
- artifact type: library
- maturity: stable
- function: routing, templating
- domain: web-development, frontend
- platform: php
- tags: symfony-component, asset-management, url-generation, cache-busting, cdn, versioning, php, web-server

## Member repositories
- symfony/asset (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:46.092018+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:25:56.186269+00:00, confidence not recorded.
  - readme: https://github.com/symfony/asset (fetched 2026-08-28T04:07:46.092018+00:00, sha 535f94ed7d47)
  - homepage: https://symfony.com/asset (fetched 2026-08-29T09:40:32.644911+00:00, sha edcb0f5a5d6b)
  - site_page: https://symfony.com/doc (fetched 2026-08-29T09:40:32.654991+00:00, sha 44889134f4fb)
  - site_page: https://symfony.com/doc/current/components/asset.html (fetched 2026-08-29T09:40:32.657987+00:00, sha 81294c74bcf3)
  - site_page: https://symfony.com/releases (fetched 2026-08-29T09:40:32.660196+00:00, sha 2fd410222cfe)
  - site_page: https://symfony.com/blog/category/releases (fetched 2026-08-29T09:40:32.662034+00:00, sha cdec5bd82c72)
- Data as of 2026-08-30T08:39:29.467469+00:00.
