flextype-components / assets
Assets Component for managing assets in your application.
Installs: 4 295
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: ^7.1.3
This package is auto-updated.
Last update: 2020-09-06 00:37:39 UTC
README
Assets Component for managing assets in your application.
Installation
composer require flextype-components/assets
Usage
use Flextype\Component\Assets\Assets;
Add new asset
Assets::add('js', 'jquery.js', 'site', 1); Assets::add('js', 'site.js', 'site', 2); Assets::add('css', 'site.css', 'site', 1); Assets::add('css', 'theme.css', 'site', 2);
Get assets for current namespace and asset type
$css = Assets::get('css', 'site'); $js = Assets::get('js', 'site');
License
See LICENSE