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
Requires
- php: ^7.1
- psr/container: ^1.0
- psr/http-message: ^1.0.1
- psr/http-server-middleware: ^1.0
- zendframework/zend-diactoros: ^1.7.1
- zendframework/zend-stratigility: ^3.0
Requires (Dev)
- phpunit/phpunit: ^7.3
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'] ));