Download the PHP package wshafer/assetmanager-expressive without Composer
On this page you can find all versions of the php package wshafer/assetmanager-expressive. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download wshafer/assetmanager-expressive
More information about wshafer/assetmanager-expressive
Files in wshafer/assetmanager-expressive
Package assetmanager-expressive
Short Description An assetmanager module for Zend Expressive.
License BSD-2-Clause
Homepage https://github.com/wshafer/assetmanager-expressive
Informations about the package assetmanager-expressive
AssetManager For Zend Expressive
Fork of the original ZF2 Assetmanager By Wesley Overdijk and Marco Pivetta for use with Zend Expressive
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
-
Require assetmanager:
- 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
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.
Sample module config:
Please be careful, since this module will serve every file as-is, including PHP code.
Questions / support
If you're having trouble with the asset manager there are a couple of resources that might be of help.
- The FAQ wiki page, where you'll perhaps find your answer.
- Issue tracker. (Please try to not submit unrelated issues).
All versions of assetmanager-expressive with dependencies
zendframework/zend-component-installer Version ^1.0 || ^0.7.0
zendframework/zend-expressive Version ^2.0.2
wshafer/assetmanager-core Version ^1.0.0