Download the PHP package laradic/assets without Composer
On this page you can find all versions of the php package laradic/assets. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download laradic/assets
More information about laradic/assets
Files in laradic/assets
Package assets
Short Description Laravel 5 Asset Manager. Fully featured, flexible, extendable and toroughly tested and documented.
License MIT
Informations about the package assets
Laradic Assets
Laradic Assets is a package for the Laravel 5 framework. It's made for Laravel 5.4+ and PHP 7.0+ .
The package follows the FIG standards PSR-1, PSR-2, and PSR-4 to ensure a high level of interoperability between shared PHP code.
Installation
Alternatively, for some of the Assetic filters to work you might need one of the following:
Documentation
For the full documenation, check out the Laradic Assets package documenatation.
Quick glance
The laradic/assets
package is a Laravel 5 asset manager. It uses Assetic
's filters in order to provide high functionality.
It provides a convienient way to handle your assets.
Overview
- A single
Asset
can be defined and compiled - Compiling will run all configured filters on the asset and write the result to the
cache_path
. Returns an instance ofCompiler\Compiled
Asset
s can beGroup
ed insideArea
s. You could considerArea
to be a 'group of groups'. You could for example createpackage-name/frontend
andpackage-name/admin
.- To use
Group
s, you will have to define at least 1Area
Creation
This will make a Asset
instance based on the given params. See the Asset
documentation for posibilities.
Compilation
This will run all configured filters on the asset and write the result to the cache_path
. Returns an instance of Compiler\Compiled
Grouping
Grouping assets brings a few advantages:
- Allows dependency definitions for
Asset
s within itsGroup
- Allows dependency definitions for
Group
s within itsArea
- Manually or automaticly compile and
Area
s,Group
s andAsset
s.
Chaining
Compilation and output
After being done with defining the area/group, you can manually trigger compilation and use the Compiler\Compiled::getHtml
method to output it.
The Asset
facade links to the Factory
class instance. The area, group and asset definition utilize the NamespacedItemResolver
.
This means some Factory
methods accept such definitions:
All versions of assets with dependencies
laradic/support Version ~1.0
laradic/filesystem Version ~1.0
laradic/dependency-sorter Version ~1.0
kriswallsmith/assetic Version ~1.2