turtlebits/keeper

Asset Manager for Laravel 4
8 1
Install
composer require turtlebits/keeper
PHP:>=5.3.0
License:MIT
Last Updated:Aug 29, 2013
Links: GitHub  ·  Packagist
Maintainer: turtlebits

Keeper

Asset Manager for Laravel 4

Setup

composer.json:

Add "turtlebits/keeper": "dev-master" to the require section of composer.json

Register the service provider by adding 'TurtleBits\Keeper\KeeperServiceProvider', to the providers section of the app/config/app.php file

If you use TwigBridge, add 'TurtleBits\Keeper\Extensions\KeeperTwigExtension' to the extensions section of the app/config/packages/rcrowe/twigbridge/config.php file.

Requirements

This package uses lessphp as a less compiler, and installs it automatically.

Usage

In Blade views:

{{ Keeper::style(array('application', 'structure')) }} {{ Keeper::script(array('jquery', 'application')) }} {{ Keeper::image('logo.jpg') }}

In Twig views:

{{ keeper_style(['application', 'structure'])|raw }}
{{ keeper_script(['jquery', 'application'])|raw }}
{{ keeper_image('logo.jpg') }}

TODO

  • Add css minification
  • Add js minification
  • Add css groups
  • Add js groups
  • Add basic image filters
  • Add basic image transforms

Related Packages

gawdl3y/asset-prefixer

Automatic asset path prefixes for Laravel

50 0
jasonlewis/resource-watcher

Simple PHP resource watcher library.

147,148 221
cartalyst/resource-watcher

Simple PHP resource watcher library.

132,534 7
adepem/laravel-assets-upload

Upload your Laravel public directory to a filesystem with an artisan command

44,666 0
etrepat/basset

A better asset management package for Laravel.

9,578 14