Download the PHP package trikoder/assets-manifest-bundle without Composer
On this page you can find all versions of the php package trikoder/assets-manifest-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download trikoder/assets-manifest-bundle
More information about trikoder/assets-manifest-bundle
Files in trikoder/assets-manifest-bundle
Package assets-manifest-bundle
Short Description Symfony bundle for generating asset urls for our new frontend static asset builing tool
License
Informations about the package assets-manifest-bundle
Manifest Asset Bundle
This bundle provides Twig helper for generating urls for static public assets.
It reads information from simple JSON config file. There is an example file in manifest.json
Usage
Bundle provides two Twig functions - manifestAsset and manifestAssetInline.
mainfestAsset takes 2 parameters:
- asset url in format @BundleName:path/to/asset or namespaced path @BundleName/path/to/asset
- optional array with options
- for now only option is: "absolute" => if true function returns absolute URIs
Example usage:
manifestAssetInline takes 1 parameter:
- asset url in format @BundleName:path/to/asset or namespaced path @BundleName/path/to/asset
It returns the file content of the asset.
Example usage:
Using custom Twig namespaces
First, you need to register your Twig namespace:
Then, you can use :
Note: Twig namespace references does not contain separator :
like bundles. See this link for more details.
Running tests and linter
For running tests and linter, there is a complete docker enviroment with php and all required tools. To setup environment use:
To run tests (after environment is built):
To run linter:
To automaticaly fix coding standards, just ommit --dry-run
parameter.
Credits
Copyright (C) 2017 Trikoder
Authors: Alen Pokos, Damir Brekalo, Krešo Kunjas.
Contributors: Branimir Đurek
License
Package is licensed under MIT License
All versions of assets-manifest-bundle with dependencies
symfony/dependency-injection Version >=2.7 <=5.0
twig/twig Version ~1.14|~2.0
symfony/config Version >=2.7 <=5.0
symfony/http-kernel Version >=2.7 <=5.0
symfony/http-foundation Version >=2.7 <=5.0