rocket / assets
This package is abandoned and no longer maintained.
No replacement package was suggested.
Manage and serve assets
dev-master / 1.0.x-dev
2016-01-02 17:58 UTC
Requires
- php: >=5.5.0
- illuminate/support: ~5.2
- kriswallsmith/assetic: 1.*
This package is auto-updated.
Last update: 2023-08-16 18:38:31 UTC
README
__ !!! This package is in development and is not yet ready for prime time !!! __
In any web application you need to load Javascript and CSS files to work. With more and more plugins, parts and modules, you need an optimal way to load them.
Require JS techniques are now the de-facto standard to load javascript. But I will bring it a step further, this is a require JS backend.
Install
Via Composer
$ composer require rocket/assets
Usage
use Assetic\AssetManager; use Rocket\UI\Assets\Assetic\Asset\JsAsset; Event::listen( 'rocket.assets.js', function (AssetManager $am) { $am->set('jquery', new JsAsset(__DIR__ . '/js/jquery.js')); $am->set('jquery.tooltips', (new JsAsset(__DIR__ . '/js/jquery.tooltips.js'))->dependsOn('jquery')); } );
Testing
All the tests live in the main project.
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.