Download the PHP package henryvolkmer/asset-publisher without Composer
On this page you can find all versions of the php package henryvolkmer/asset-publisher. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download henryvolkmer/asset-publisher
More information about henryvolkmer/asset-publisher
Files in henryvolkmer/asset-publisher
Package asset-publisher
Short Description if you cant utilize Webpack, then you can use this Poormans assets publisher.
License
Informations about the package asset-publisher
Assetpublisher
this is a lightweight Asset publisher.
Mostly your assets (images,css,java-script files) are located in project's vendor/
-Directory or other protected folders and are not accessable for Users Webbrowser.
The Section "assets" in the bundle-configuration provides the publish strategies. The Key sources
defines an array of Asset-Sources. The Sources-Array Key defines the target filename.
In this Example, the bootstrap.css is copied to %kernel.project_dir%/web/assets/style.css
:
Lets have a look at this configurationfile (config/packages/assets.yml
):
Publish strategies
Symlink
Create a symbolic Link from asset-source to publicpath
- source must be a Directory
Merge
merges all Asset-source Files into on common public file.
- sources must contain at least two files
Copy
copy the Asset-source to publicpath
- source must be a single file
Installation
composer require henryvolkmer/asset-publisher
- register the bundle in your bundles.php
All versions of asset-publisher with dependencies
symfony/config Version >= 5.4 || ^6.1
symfony/dependency-injection Version >= 5.4 || ^6.1
symfony/filesystem Version >= 5.4 || ^6.1