2017 © Pedro PelĂĄez
 

library asset

Very simple asset manager

image

crodas/asset

Very simple asset manager

  • Friday, December 19, 2014
  • by crodas
  • Repository
  • 1 Watchers
  • 3 Stars
  • 915 Installations
  • PHP
  • 0 Dependents
  • 1 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

SimpleAssetManager

Extremely simple asset manager for PHP. If you need anything advanced I'd recommend you to take a look at Assetic., (*1)

How does it work?

You need to configure it, (*2)

\crodas\Asset\Configure::get()
 ->store('/tmp/map.php') // It is where temporary info is stored, to speed up things
 ->detDir('js', __DIR__ . '/public/js', '/js')                                                   
 ->setDir('css', __DIR__ . '/public/css', '/css');

Then you can simple call it from your views, (*3)

echo Asset::css('base.css', 'style.css');
echo Asset::js('jquery.js', 'jquery-ui.js');

Todo

  1. Add unit tests
  2. Less/scss support
  3. Ability to define packages ahead of time (for instance define jquery.js = jquery.js + jquery-ui.js)

The Versions

19/12 2014

dev-develop

dev-develop

Very simple asset manager

  Sources   Download

BSD-4-Clause

The Requires

 

by CĂ©sar D. Rodas

05/09 2014

dev-master

9999999-dev

Very simple asset manager

  Sources   Download

BSD-4-Clause

The Requires

 

by CĂ©sar D. Rodas

05/09 2014

v0.1.2

0.1.2.0

Very simple asset manager

  Sources   Download

BSD-4-Clause

The Requires

 

by CĂ©sar D. Rodas