Download the PHP package endroid/asset without Composer
On this page you can find all versions of the php package endroid/asset. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download endroid/asset
More information about endroid/asset
Files in endroid/asset
Package asset
Short Description Endroid Asset
License MIT
Homepage https://github.com/endroid/asset
Informations about the package asset
Asset
By endroid
Library for quick and easy asset management.
Read the blog for more information on why I created this library.
- ControllerAsset: generates the string from a controller action and parameters.
- TemplateAsset: generates the string from a template and parameters.
- FileAsset: generates the string by loading the contents of a file.
- UrlAsset: simply contains a string which is returned when requested.
- DataAsset: simply contains a string which is returned when requested.
- CacheAsset: wraps any of the above in a cache to optimize performance.
All implement AssetInterface and provide the method: getData().
Usage
The easiest way to work with assets is by letting the factory create assets for you. This allows you to create your assets without worrying about the necessary dependencies.
Installation
Use Composer to install the library.
When you use Symfony, the installer
makes sure that services are automatically wired. If this is not the case you
can find the configuration files in the .install/symfony
folder.
Versioning
Version numbers follow the MAJOR.MINOR.PATCH scheme. Backwards compatible changes will be kept to a minimum but be aware that these can occur. Lock your dependencies for production and test your code when upgrading.
License
This bundle is under the MIT license. For the full copyright and license information please view the LICENSE file that was distributed with this source code.
All versions of asset with dependencies
endroid/installer Version ^1.3.1
symfony/cache-contracts Version ^2.0||^3.0
symfony/http-client Version ^5.4||^6.4||^7.0
symfony/http-kernel Version ^5.4||^6.4||^7.0
symfony/options-resolver Version ^5.4||^6.4||^7.0
twig/twig Version ^3.0