hampus/stack-static-file
Composer 安装命令:
composer require hampus/stack-static-file
包简介
A PHP port of Rack::Static.
关键字:
README 文档
README
This is a PHP port of the Rack::Static middleware.
The middleware intercepts requests for static files (javascript files, images, stylesheets, etc) based on the url prefixes or route mappings passed in the options.
Usage
Wrap your HttpKernelInterface app in an instance of Hampus\Stack\StaticFile or add it to your middleware stack.
With stack/builder:
<?php $options = []; $app = (new Stack\Builder) ->push('Hampus\Stack\StaticFile', $options) ->resolve($app);
Without the builder:
$app = new Hampus\Stack\StaticFile($app, $options);
统计信息
- 总下载量: 40
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-03-15