2017 © Pedro Peláez
 

library assetmanager

An assetmanager module for Zend Framework 2.

image

rwoverdijk/assetmanager

An assetmanager module for Zend Framework 2.

  • Monday, July 31, 2017
  • by RWOverdijk
  • Repository
  • 31 Watchers
  • 210 Stars
  • 941,153 Installations
  • PHP
  • 101 Dependents
  • 15 Suggesters
  • 78 Forks
  • 20 Open issues
  • 39 Versions
  • 4 % Grown

The README.md

AssetManager

By Wesley Overdijk and Marco Pivetta, (*1)

Build Status Latest Stable Version, (*2)

⚠️ No longer maintained

Every now and then a PR might be merged, but it's probably for the best to use a fork., (*3)

PRs without enough reputable approvals will not be merged., (*4)

Introduction

This module is intended for usage with a default directory structure of a LaminasSkeletonApplication. It provides functionality to load assets and static files from your module directories through simple configuration. This allows you to avoid having to copy your files over to the public/ directory, and makes usage of assets very similar to what already is possible with view scripts, which can be overridden by other modules. In a nutshell, this module allows you to package assets with your module working out of the box., (*5)

Installation

  1. Require assetmanager:
./composer.phar require rwoverdijk/assetmanager
# When asked for a version, type "2.*" when using Laminas. When using Zend Framework type "1.*"

Usage

Take a look at the wiki for a quick start and more information. A lot, if not all of the topics, have been covered in-dept there., (*6)

Sample module config:, (*7)

<?php
return array(
    'asset_manager' => array(
        'resolver_configs' => array(
            'collections' => array(
                'js/d.js' => array(
                    'js/a.js',
                    'js/b.js',
                    'js/c.js',
                ),
            ),
            'paths' => array(
                __DIR__ . '/some/particular/directory',
            ),
            'map' => array(
                'specific-path.css' => __DIR__ . '/some/particular/file.css',
            ),
        ),
        'filters' => array(
            'js/d.js' => array(
                array(
                    // Note: You will need to require the classes used for the filters yourself.
                    'filter' => 'JSMin',
                ),
            ),
        ),
        'view_helper' => array(
            'cache'            => 'Application\Cache\Redis', // You will need to require the factory used for the cache yourself.
            'append_timestamp' => true,                      // optional, if false never append a query param
            'query_string'     => '_',                       // optional
        ),
        'caching' => array(
            'js/d.js' => array(
                'cache'     => 'Apc',
            ),
        ),
    ),
);

Please be careful, since this module will serve every file as-is, including PHP code., (*8)

Questions / support

If you're having trouble with the asset manager there are a couple of resources that might be of help. * Join us on gitter Gitter chat * The FAQ wiki page, where you'll perhaps find your answer. * RWOverdijk at irc.freenode.net #zftalk.dev or #spoonx * Issue tracker. (Please try to not submit unrelated issues)., (*9)

Todo

The task list has been slimmed down a lot lately. However, there are still a couple of things that should be done., (*10)

  • Renewing the cache

The Versions

05/09 2013

1.3.4

1.3.4.0 https://github.com/RWOverdijk/AssetManager

An assetmanager module for Zend Framework 2.

  Sources   Download

BSD-2-Clause

The Requires

 

zf2 asset zend framework 2 asset manager

05/09 2013

1.3.3

1.3.3.0 https://github.com/RWOverdijk/AssetManager

An assetmanager module for Zend Framework 2.

  Sources   Download

BSD-2-Clause

The Requires

 

zf2 asset zend framework 2 asset manager

20/08 2013

1.3.2

1.3.2.0 https://github.com/RWOverdijk/AssetManager

An assetmanager module for Zend Framework 2.

  Sources   Download

BSD-2-Clause

The Requires

 

zf2 asset zend framework 2 asset manager

04/06 2013

1.3.1

1.3.1.0 https://github.com/RWOverdijk/AssetManager

An assetmanager module for Zend Framework 2.

  Sources   Download

BSD-2-Clause

The Requires

 

zf2 asset zend framework 2 asset manager

19/01 2013

1.2.6

1.2.6.0 https://github.com/RWOverdijk/AssetManager

An assetmanager module for Zend Framework 2.

  Sources   Download

BSD-2-Clause

The Requires

 

zf2 asset zend framework 2 asset manager

02/11 2012

1.2.5

1.2.5.0 https://github.com/RWOverdijk/AssetManager

An assetmanager module for Zend Framework 2.

  Sources   Download

BSD-2-Clause

The Requires

 

zf2 asset zend framework 2 asset manager

02/11 2012

dev-hotfix/assetic-version

dev-hotfix/assetic-version https://github.com/RWOverdijk/AssetManager

An assetmanager module for Zend Framework 2.

  Sources   Download

BSD-2-Clause

The Requires

 

zf2 asset zend framework 2 asset manager

02/11 2012

dev-hotfix/rem-dep

dev-hotfix/rem-dep https://github.com/RWOverdijk/AssetManager

An assetmanager module for Zend Framework 2.

  Sources   Download

BSD-2-Clause

The Requires

 

zf2 asset zend framework 2 asset manager

02/11 2012

dev-hotfix/dep-change

dev-hotfix/dep-change https://github.com/RWOverdijk/AssetManager

An assetmanager module for Zend Framework 2.

  Sources   Download

BSD-2-Clause

The Requires

 

zf2 asset zend framework 2 asset manager

01/11 2012

dev-hotfix/version-update

dev-hotfix/version-update https://github.com/RWOverdijk/AssetManager

An assetmanager module for Zend Framework 2.

  Sources   Download

BSD-2-Clause

The Requires

 

zf2 asset zend framework 2 asset manager

01/11 2012

1.2.3

1.2.3.0 https://github.com/RWOverdijk/AssetManager

An assetmanager module for Zend Framework 2.

  Sources   Download

BSD-2-Clause

The Requires

 

zf2 asset zend framework 2 asset manager

01/11 2012

1.2.4

1.2.4.0 https://github.com/RWOverdijk/AssetManager

An assetmanager module for Zend Framework 2.

  Sources   Download

BSD-2-Clause

The Requires

 

zf2 asset zend framework 2 asset manager

01/11 2012

dev-hotfix/console-bug

dev-hotfix/console-bug https://github.com/RWOverdijk/AssetManager

An assetmanager module for Zend Framework 2.

  Sources   Download

BSD-2-Clause

The Requires

 

zf2 asset zend framework 2 asset manager

22/10 2012

1.2.2

1.2.2.0 https://github.com/RWOverdijk/AssetManager

An assetmanager module for Zend Framework 2.

  Sources   Download

BSD-2-Clause

The Requires

 

zf2 asset zend framework 2 asset manager

22/10 2012

dev-hotfix/license

dev-hotfix/license https://github.com/RWOverdijk/AssetManager

An assetmanager module for Zend Framework 2.

  Sources   Download

BSD-2-Clause

The Requires

 

zf2 asset zend framework 2 asset manager

06/10 2012

1.2.1

1.2.1.0 https://github.com/RWOverdijk/AssetManager

An assetmanager module for Zend Framework 2.

  Sources   Download

The Requires

 

zf2 asset zend framework 2 asset manager

03/10 2012

1.2.0

1.2.0.0 https://github.com/RWOverdijk/AssetManager

An assetmanager module for Zend Framework 2.

  Sources   Download

The Requires

 

zf2 asset zend framework 2 asset manager

03/10 2012

1.1.0

1.1.0.0 https://github.com/RWOverdijk/AssetManager

An assetmanager module for Zend Framework 2.

  Sources   Download

The Requires

 

zf2 asset zend framework 2 asset manager

01/10 2012

1.0.1

1.0.1.0 https://github.com/RWOverdijk/AssetManager

An assetmanager module for Zend Framework 2.

  Sources   Download

The Requires

 

zf2 asset zend framework 2 asset manager

06/09 2012

1.0.0

1.0.0.0 https://github.com/RWOverdijk/AssetManager

An assetmanager module for Zend Framework 2.

  Sources   Download

The Requires

 

zf2 asset zend framework 2 asset manager