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

README

For future support, including expressive 3 support, try this other project: https://github.com/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']
));