2017 © Pedro Peláez
 

component f3-minify

Front-end package manager for the F3-framework

image

dioscouri/f3-minify

Front-end package manager for the F3-framework

  • Monday, August 31, 2015
  • by rdiaztushman
  • Repository
  • 5 Watchers
  • 0 Stars
  • 1,155 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 6 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

f3-minify

A front-end package manager for the F3 framework, (*1)

Getting Started

Add this to your project's composer.json file:

{
    "require": {
        "dioscouri/f3-minify": "dev-master"
    }
}

Use case

You want to have a single access point for all the CSS and JS from all your apps you can register them to minify and return them from a route, (*2)

 // tell Minify where to find Media, CSS and JS files
        \Minify\Factory::registerPath($this->app->get('PATH_ROOT') . "public/Theme/");
        \Minify\Factory::registerPath($this->app->get('PATH_ROOT') . "public/Theme/css/");
        \Minify\Factory::registerPath($this->app->get('PATH_ROOT') . "public/");


        // add the media assets to be minified
        $files = array(
            'css/style.css'
        );

        foreach ($files as $file)
        {
            \Minify\Factory::css($file);
        }

        $files = array(
            'js/script.js'
        );

        foreach ($files as $file)
        {
            \Minify\Factory::js($file, array(
                'priority' => 1
            ));
        }

The Versions

31/08 2015

dev-master

9999999-dev https://github.com/dioscouri/f3-minify

Front-end package manager for the F3-framework

  Sources   Download

GPL

The Requires

 

f3 rad package manager

31/08 2015

v0.9.0

0.9.0.0 https://github.com/dioscouri/f3-minify

Front-end package manager for the F3-framework

  Sources   Download

GPL

The Requires

 

f3 rad package manager

29/08 2015

v0.8.1

0.8.1.0 https://github.com/dioscouri/f3-minify

Front-end package manager for the F3-framework

  Sources   Download

GPL

The Requires

 

f3 rad package manager

16/07 2015

v0.8

0.8.0.0 https://github.com/dioscouri/f3-minify

Front-end package manager for the F3-framework

  Sources   Download

GPL

The Requires

 

f3 rad package manager