reliv/serve-static

A PSR-15 middleware that serves static assets for you. Is similar to the "serve-static" npm package.

1.0.1 2019-01-10 23:06 UTC

This package is auto-updated.

Last update: 2024-11-29 04:09:07 UTC


README

For future support, including expressive 3 support, try this other project: https://packagist.org/packages/fduarte42/zend-expressive-static-files

Serve Static

A PSR-15 middleware that serves static assets for you

Example usage:

$app->pipe('/fun-module/assets', new \Reliv\ServeStatic\ServeStaticMiddleware(
    __DIR__ . '/../vendor/fund-module/public',
    ['publicCachePath' => __DIR__ . '/../public/fun-module/assets']
));