but for this you donβt need a full symfony stack (unless you need some internal symfony state / variable).
You just use
<link rel="stylesheet" type="text/css" media="screen" href="/css/mycss.php" />
and then you can use php inside your css. you can add appropriate headers (text / css) with a header in php.
source share