reliv/serve-static

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

1.0.0 2018-10-16 16:21 UTC

README

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']
));