PHPackages                             wshafer/assetmanager-expressive - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. wshafer/assetmanager-expressive

AbandonedLibrary[Utility &amp; Helpers](/categories/utility)

wshafer/assetmanager-expressive
===============================

An assetmanager module for Zend Expressive.

1.0.0-beta(8y ago)1110[1 issues](https://github.com/wshafer/assetmanager-expressive/issues)BSD-2-ClausePHPPHP ^5.6 || ^7.0

Since Dec 27Pushed 8y ago1 watchersCompare

[ Source](https://github.com/wshafer/assetmanager-expressive)[ Packagist](https://packagist.org/packages/wshafer/assetmanager-expressive)[ Docs](https://github.com/wshafer/assetmanager-expressive)[ RSS](/packages/wshafer-assetmanager-expressive/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (6)Versions (2)Used By (0)

[![codecov](https://camo.githubusercontent.com/d0f24f8453986561d7033638b31cd7ebffcba6465c1db3b69dbbdef62a3cc17a/68747470733a2f2f636f6465636f762e696f2f67682f777368616665722f61737365746d616e616765722d657870726573736976652f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/wshafer/assetmanager-expressive)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/6293e9aeda142bd74198b9599dbe372fd7b7bec84dd9698919f69597438611b2/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f777368616665722f61737365746d616e616765722d657870726573736976652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/wshafer/assetmanager-expressive/?branch=master)[![Build Status](https://camo.githubusercontent.com/b0bc571dd3ea673b923be5df2adc8488973f9961f7505fdd0796ea4861c394a8/68747470733a2f2f7472617669732d63692e6f72672f777368616665722f61737365746d616e616765722d657870726573736976652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/wshafer/assetmanager-expressive)

AssetManager For Zend Expressive
================================

[](#assetmanager-for-zend-expressive)

Fork of the original [ZF2 Assetmanager](https://github.com/RWOverdijk/AssetManager)By [Wesley Overdijk](http://blog.spoonx.nl/) and [Marco Pivetta](http://ocramius.github.com/)for use with Zend Expressive

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

[](#introduction)

This module 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*.

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

[](#installation)

1. Require assetmanager:
    `    composer require wshafer/assetmanager-expressive    `
2. Register the middleware. The trick here is to make sure this is the last middleware to run before returning any kind of "not found" responses. In a default pipeline, this would be placed just above the "NotFoundHandler" in `pipeline.php`

    ```
    $app->pipe(\AssetManager\Expressive\MiddleWare\AssetManagerMiddleware::class);

    ```

Usage
-----

[](#usage)

Take a look at the **[wiki](https://github.com/wshafer/assetmanager-core/wiki)** for a quick start and more information. A lot, if not all of the topics, have been covered in-dept there.

**Sample module config:**

```
