2017 © Pedro Peláez
 

library ext-view-helper-assets

MvcCore Extension - View Helper - Assets - to group, render, minify and cache javascript and css files, to prepare all application assets for final application packing.

image

mvccore/ext-view-helper-assets

MvcCore Extension - View Helper - Assets - to group, render, minify and cache javascript and css files, to prepare all application assets for final application packing.

  • Friday, June 8, 2018
  • by tomFlidr
  • Repository
  • 1 Watchers
  • 0 Stars
  • 57 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 16 Versions
  • 0 % Grown

The README.md

MvcCore - Extension - View - Helper - Assets

Latest Stable Version License PHP Version, (*1)

MvcCore View Helper extensin to group, render, minify and cache javascript and css files, to prepare all application assets for final application packing., (*2)

Installation

composer require mvccore/ext-view-helper-assets

Features

  • grouping files together to deliver them in one response
  • optional rendering PHP code inside group files
  • optional completing assets url adresses targeting into index.php packed result, where small data sources (icons, image maps...), shoud be packed into, if you want to develop and build single file application.
    • Example: <?php echo $this->AssetUrl('favicon.ico'); ?>
  • saving grouped files in application temp directory '/Var/Tmp'
  • checking changed sources by file modification time or by file md5 imprint
  • no source files checking in application compiled mode (packed into PHP package)
  • optional CSS or JS minification by external library mrclay/minify ^2.2.0
  • optional downloading external js files into result group

Example

Base controller code:, (*3)

namespace App\Controllers;

class Base {
    public function PreDispatch () {
        parent::PreDispatch();
        \MvcCore\Ext\Views\Helpers\Assets::SetGlobalOptions([
            cssMinify   => TRUE,
            cssJoin     => TRUE,
        ]);
        $this->Css('head')
            ->AppendRendered('/app/root/rel/path/to/first.css')
            ->Append('/app/root/rel/path/to/second.css');
    }
}

Layout template code:, (*4)

<html>
    <head>
        <!--
           only one file will be generated and delivered:
           <link rel="stylesheet" href="/Var/Tmp/temp-file-name.css" />
        -->
        <?php echo $this->Css('head')->Render(); ?>
    </head>
    <body>...</body>
</html>

The Versions

08/06 2018

dev-master

9999999-dev

MvcCore Extension - View Helper - Assets - to group, render, minify and cache javascript and css files, to prepare all application assets for final application packing.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

plugin framework css extension helper javascript mvc assets js sheets view plug-in viewhelper styles ext prepare packing mvccore assets completion assets caching

10/05 2018

v5.0.0-alpha

5.0.0.0-alpha

MvcCore Extension - View Helper - Assets - to group, render, minify and cache javascript and css files, to prepare all application assets for final application packing.

  Sources   Download

BSD-3-Clause

The Requires

 

plugin framework css extension helper javascript mvc assets js sheets view plug-in viewhelper styles ext prepare packing mvccore assets completion assets caching

17/12 2017

v4.3.1

4.3.1.0

MvcCore Extension - View Helper - Assets - to group, render, minify and cache javascript and css files, to prepare all application assets for final application packing.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

plugin framework css extension helper javascript mvc assets js sheets view plug-in viewhelper styles ext prepare packing mvccore assets completion assets caching

07/10 2017

v4.2.0

4.2.0.0

MvcCore Extension - View Helper - Assets - to group, render, minify and cache javascript and css files, to prepare all application assets for final application packing.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

plugin framework css extension helper javascript mvc assets js sheets view plug-in viewhelper styles ext prepare packing mvccore assets completion assets caching

31/07 2017

v4.1.2

4.1.2.0

MvcCore Extension - View Helper - Assets - to group, render, minify and cache javascript and css files, to prepare all application assets for final application packing.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

plugin framework css extension helper javascript mvc assets js sheets view plug-in viewhelper styles ext prepare packing mvccore assets completion assets caching

26/07 2017

v4.1.1

4.1.1.0

MvcCore Extension - View Helper - Assets - to group, render, minify and cache javascript and css files, to prepare all application assets for final application packing.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

plugin framework css extension helper javascript mvc assets js sheets view plug-in viewhelper styles ext prepare packing mvccore assets completion assets caching

12/05 2017

v4.1.0

4.1.0.0

MvcCore Extension - View Helper - Assets - to group, render, minify and cache javascript and css files, to prepare all application assets for final application packing.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

plugin framework css extension helper javascript mvc assets js sheets view plug-in viewhelper styles ext prepare packing mvccore assets completion assets caching

27/01 2017

v4.0.0

4.0.0.0

MvcCore Extension - View Helper - Assets - to group, render, minify and cache javascript and css files, to prepare all application assets for final application packing.

  Sources   Download

BSD-3-Clause

The Requires

 

The Development Requires

plugin framework css extension helper javascript mvc assets js sheets view plug-in viewhelper styles ext prepare packing mvccore assets completion assets caching

26/01 2017

v3.2.0

3.2.0.0

MvcCore Extension - View Helper Assets - to group, render, minify and cache javascript and css files, to prepare all application assets for final application packing.

  Sources   Download

BSD-3-Clause

The Requires

 

framework css extension helper javascript mvc assets js sheets view styles ext prepare packing mvccore assets completion assets caching

24/01 2017

v3.1.2

3.1.2.0

MvcCore Extension - View Helper Assets - to group, render, minify and cache javascript and css files, to prepare all application assets for final application packing.

  Sources   Download

BSD-3-Clause

The Requires

 

framework css extension helper javascript mvc assets js sheets view styles ext prepare packing mvccore assets completion assets caching

22/01 2017

v3.1.1

3.1.1.0

MvcCore Extension - View Helper Assets - to group, render, minify and cache javascript and css files, to prepare all application assets for final application packing.

  Sources   Download

BSD-3-Clause

The Requires

 

framework css extension helper javascript mvc assets js sheets view styles ext prepare packing mvccore assets completion assets caching

22/01 2017

v3.1.0

3.1.0.0

MvcCore Extension - View Helper Assets - to group, render, minify and cache javascript and css files, to prepare all application assets for final application packing.

  Sources   Download

BSD-3-Clause

The Requires

 

framework css extension helper javascript mvc assets js sheets view styles ext prepare packing mvccore assets completion assets caching

19/01 2017

v3.0.3

3.0.3.0

MvcCore Extension - View Helper Assets - to group, render, minify and cache javascript and css files, to prepare all application assets for final application packing.

  Sources   Download

BSD-3-Clause

The Requires

 

framework css extension helper javascript mvc assets js sheets view styles ext prepare packing mvccore assets completion assets caching

17/01 2017

v3.0.2

3.0.2.0

MvcCore Extension - View Helper Assets - to group, render, minify and cache javascript and css files, to prepare all application assets for final application packing.

  Sources   Download

BSD-3-Clause

The Requires

 

framework css extension helper javascript mvc assets js sheets view styles ext prepare packing mvccore assets completion assets caching

17/01 2017

v3.0.1

3.0.1.0

MvcCore Extension - View Helper Assets - to group, render, minify and cache javascript and css files, to prepare all application assets for final application packing.

  Sources   Download

BSD-3-Clause

The Requires

 

framework css extension helper javascript mvc assets js sheets view styles ext prepare packing mvccore assets completion assets caching

16/01 2017

v3.0.0

3.0.0.0

MvcCore Extension - View Helper Assets - to group, render, minify and cache javascript and css files, to prepare all application assets for final application packing.

  Sources   Download

BSD-3-Clause

The Requires

 

framework css extension helper javascript mvc assets js sheets view styles ext prepare packing mvccore assets completion assets caching