rackem/cgi
Composer 安装命令:
composer require rackem/cgi
包简介
Run CGI-based applications with Rackem
README 文档
README
Use these to serve CGI compliant applications via Rack'em.
Example
return \Rackem::run(new \Rackem\Php(null, __DIR__));
This will serve the current directory as a PHP CGI application. The first parameter can be used to pass in a Rack'em application so you can also use this as a middleware.
Web Applications
This is a great way to run some PHP applications locally (for development), so I included a Rewritable app to do just that.
return \Rackem::run(new \Rackem\Rewritable(null, __DIR__.'/wordpress'));
This will serve a Wordpress site that is located in ./wordpress/
The Rewritable class can also serve other web applications like Drupal etc.
统计信息
- 总下载量: 274
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-07-08