Download the PHP package simexis/laravel-casset without Composer
On this page you can find all versions of the php package simexis/laravel-casset. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download simexis/laravel-casset
More information about simexis/laravel-casset
Files in simexis/laravel-casset
Package laravel-casset
Short Description An asset management package for Laravel 5.
License MIT
Informations about the package laravel-casset
Casset Package for Laravel 5
This package is baset on https://github.com/mmanos/laravel-casset
Casset is an asset manager for Laravel 5 applications. Some things it can do:
- Create one or more asset containers.
- Compile less files.
- Combine assets into one file.
- Minify output.
- Accept assets from Laravel package public directories.
"package::/js/file.js"
- Define dependencies for an asset.
- Define global dependencies for all assets of the same file type.
- Define an optional CDN for asset URLs.
- Optionally defer processing/combining assets to a controller (useful when distributing page requests across multiple servers).
Installation via Composer
Add this to your composer.json file, in the require object:
After that, run composer install to install Casset.
Add the service provider to app/config/app.php
, within the providers
array.
Add a class alias to app/config/app.php
, within the aliases
array.
Finally, ensure the cache directory defined in the config file is created and writable by the web server (defaults to public/assets/cache).
Edit public/assets/cache/.gitignore.
Usage
Add assets to the "default" container:
Add assets to a custom container:
Add an asset with a dependency on another asset:
Add a global dependency for all assets (of the same file type):
Add assets from a composer package (vendorName/packageName):
Render HTML tags to load assets for a container:
Generate a URL to an asset on the CDN server:
All versions of laravel-casset with dependencies
illuminate/support Version >=5.0.0
oyejorge/less.php Version >=1.7.0
mrclay/minify Version ~2.1