PHPackages                             lpinc/lpi-asset-loader - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Templating &amp; Views](/categories/templating)
4. /
5. lpinc/lpi-asset-loader

ActiveLibrary[Templating &amp; Views](/categories/templating)

lpinc/lpi-asset-loader
======================

LpiAssetLoader is a zend framework module that can be used in zf2 or zf3 layouts to load front end asset javascript and css files and frameworks

0.1.10(9y ago)061BSD-3-ClausePHPPHP &gt;=5.3

Since Feb 26Pushed 8y ago1 watchersCompare

[ Source](https://github.com/lpinc/lpi-asset-loader)[ Packagist](https://packagist.org/packages/lpinc/lpi-asset-loader)[ RSS](/packages/lpinc-lpi-asset-loader/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (10)Used By (0)

LpiAssetLoader Zend Framework Module (ZF3 compatible)
-----------------------------------------------------

[](#lpiassetloader-zend-framework-module-zf3-compatible)

Created by [LPinc](http://livingpages.com/)

Introduction
------------

[](#introduction)

LpiAssetLoader is a zend framework - ZF2 and ZF3 - module that helps configure the loading of front-end *custom*, *bower*, or *npm* javascript and css files and assets.

This module can be especially handy if you load AMD javascript modules in your layouts or view scripts.

Installation
------------

[](#installation)

#### via github

[](#via-github)

To install LpiAssetLoader, simply recursively clone this repository (`git clone --recursive`) into your ZF2 or ZF3 modules directory.

#### Or with composer

[](#or-with-composer)

1. Add this project and [LpiAssetLoader](https://github.com/lpinc/lpi-asset-loader) in your composer.json:

    ```
    "require": {
        "lpinc/lpi-asset-loader": "~0.1"
    }
    ```
2. Now tell composer to download ZfcUser by running the command:

    ```
    $ php composer.phar update
    ```

#### Enable

[](#enable)

Enable **LpiAssetLoader** in your `config/application.config.php` file.

#### Config Options

[](#config-options)

The LpiAssetLoader module has some options to help customize the basic functionality. After installing LpiAssetLoader, copy `./vendor/lpinc/lpi-asset-loader/config/lpiassetloader.global.php.dist` to `./config/autoload/lpiassetloader.global.php` and change the values as desired.

If you istalled dojo using nodejs npm, then a sample config might look like this:

```
$settings = array(
   'dojo_config_settings' => array(
      'async' => true,
      'parseOnLoad' => true
   ),
   'dojo_on' => true,
   'use_source' => true,
   'base_vendor_src_path' => '/node_modules/',
   'amd_vendor_modules' => array(
      'dojo' => 'dojo',
      'dijit' => 'dijit',
      'dojox' => 'dojox'
   )
);

return array(
   'lpi-asset-loader' => $settings
);

```

Example Uses:
-------------

[](#example-uses)

### To configue and intialize dojo in a zend framework view-layout file:

[](#to-configue-and-intialize-dojo-in-a-zend-framework-view-layout-file)

```
if (is_object($this->LpiAssetLoader)) {
   echo $this->LpiAssetLoader->getDojoConfig();
   echo $this->LpiAssetLoader->getDojoInitAssets();
}

```

### To configue dojo with a custom module in a zend framework layout file:

[](#to-configue-dojo-with-a-custom-module-in-a-zend-framework-layout-file)

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~99 days

Recently: every ~85 days

Total

8

Last Release

3402d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/427bc9b347899e89539d2cfd67509653a5749e8d59f857638c8fcf8e5251d8e7?d=identicon)[lpinc](/maintainers/lpinc)

---

Top Contributors

[![lpinc](https://avatars.githubusercontent.com/u/9734246?v=4)](https://github.com/lpinc "lpinc (4 commits)")

---

Tags

zf2bootstrapzf3dojonpm

### Embed Badge

![Health badge](/badges/lpinc-lpi-asset-loader/health.svg)

```
[![Health](https://phpackages.com/badges/lpinc-lpi-asset-loader/health.svg)](https://phpackages.com/packages/lpinc-lpi-asset-loader)
```

###  Alternatives

[mopa/bootstrap-bundle

Easy integration of twitters bootstrap into symfony2

7042.9M33](/packages/mopa-bootstrap-bundle)[braincrafted/bootstrap-bundle

BraincraftedBootstrapBundle integrates Bootstrap into Symfony2 by providing templates, Twig extensions, services and commands.

3932.0M33](/packages/braincrafted-bootstrap-bundle)[infyomlabs/adminlte-templates

AdminLTE templates for InfyOm Laravel Generator

2681.6M7](/packages/infyomlabs-adminlte-templates)[bk2k/bootstrap-package

Bootstrap Package delivers a full configured frontend theme for TYPO3, based on the Bootstrap CSS Framework.

357891.4k72](/packages/bk2k-bootstrap-package)[evandotpro/edp-module-layouts

EdpModuleLayouts is very simple ZF2 module for making module-specific layouts insanely easy.

104207.4k1](/packages/evandotpro-edp-module-layouts)[kartik-v/yii2-popover-x

An extended bootstrap 3.0 popover widget which combines both the bootstrap popover and modal features and includes various new styling enhancements.

233.4M8](/packages/kartik-v-yii2-popover-x)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
