fduarte42/zend-expressive-static-files

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

1.2.4 2020-10-21 09:07 UTC

This package is auto-updated.

Last update: 2020-10-21 09:09:35 UTC


README

A PSR-15 middleware that serves static assets for you

Example usage:

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

This is a fork of Serve Static https://github.com/reliv/serve-static