Registry / web-framework / symfony-asset-mapper

symfony-asset-mapper

JSON →
library8.1.0phppackagistunverified

Maps directories of assets & makes them available in a public directory with versioned filenames.

composer require symfony/asset-mapper
INSTALL
IMPORT
SIG · SYMFONY-ASSET-MAPP
S
symfony-asset-mapper
web-frameworkphpv8.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

AssetMapper
use Symfony\Component\AssetMapper\AssetMapper;

Map and copy assets to public directory

use Symfony\Component\AssetMapper\AssetMapper; use Symfony\Component\AssetMapper\Path\PublicAssetsPathResolver; $mapper = new AssetMapper( new PublicAssetsPathResolver('/public/assets'), ['/assets'] ); $mapper->copyAssets();
Debug
Known issues
breakingSymfony 6.1+ required; AssetMapper replaces older Assetic integration.
fix
Upgrade to Symfony 6.1+ and remove Assetic dependencies.
affects: >=6.1
Upgrade
Version history
8.1.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
symfony-asset-mapper — pip install symfony-asset-mapper · libregistry