dustingraham/asset-manager

This package is abandoned and no longer maintained. No replacement package was suggested.

Asset manager integrating assetic into Laravel 4

v1.0 2014-06-20 23:12 UTC

This package is not auto-updated.

Last update: 2021-01-19 23:21:26 UTC


README

Support functionality for assetic to integrate into Laravel 4 and handle configuration.

Composer

Add to your composer.json "require": { "dustingraham/asset-manager": "dev-master" },

Run composer update

Laravel

Once installed, add the service provider and alias to app/config/app.php.

'providers' => array (
    ...
    'Aja\AssetManager\ServiceProvider',
    ...
),
'aliases' => array (
    ...
    'Asset' => 'Aja\AssetManager\Facades\Asset',
    ...
),

Config

Publish the config file.

> php artisan config:publish dustingraham/asset-manager

Usage

Compile production assets using

> php artisan aja:asset

Include the tags to output CSS and JS respectively.

<html>
    <head>
        ...
        <?php echo Asset::Stylesheets(); ?>
        ...
    </head>
    <body>
        ...
        <?php echo Asset::Javascripts(); ?>
        ...
    </body>
<html>