Download the PHP package netresearch/assetpicker-bundle without Composer
On this page you can find all versions of the php package netresearch/assetpicker-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download netresearch/assetpicker-bundle
More information about netresearch/assetpicker-bundle
Files in netresearch/assetpicker-bundle
Package assetpicker-bundle
Short Description Symfony Bundle for [AssetPicker](https://github.com/netresearch/assetpicker)
License MIT
Informations about the package assetpicker-bundle
AssetPicker Symfony Bundle
This Symfony bundle provides the AssetPicker sources to Symfony Applications along with view helpers and a proxy controller.
Installation
-
Install via composer
composer require assetpicker-bundle
- Enable the bundle
-
Add AssetPicker configuration to your
app/config/config.yml
-
(Optional) If you want to use the builtin proxy controller, you must include its routes into
app/config/routing.yml
- the correct proxy url will then be set automatically: - Clear cache and install the assets
Usage
The bundle provides two twig functions: assetpicker_config
and assetpicker_url
. The first returns a JSON representation of the config from your app/config/config.yml
(eventually with the proxy url added) and the second gives you the url to the picker.js inside your assets path (usually /web/bundles/assetpicker/js/picker.js). You can use them as follows: