attogram/htfaker
Composer 安装命令:
composer require attogram/htfaker
包简介
.htaccess functionality for the PHP built-in web server
README 文档
README
htfaker is a router script that emulates Apache .htaccess functionality for the PHP built-in web server.
Install
Example install:
composer require attogram/htfaker
Usage
Example usage:
cd vendor/attogram/htfaker
php -S localhost:8080 router.php
then open http://localhost:8080/ in your web browser.
Status
htfaker is in the startup stage.
If you're interested in making a working library, please fork and contribute!
| core directives | status |
|---|---|
| ErrorDocument | in dev |
| ErrorDocument 400 (Bad Request) | - |
| ErrorDocument 401 (Unauthorized) | - |
| ErrorDocument 402 (Payment Required) | - |
| ErrorDocument 403 (Forbidden) | - |
| ErrorDocument 404 (Not Found) | - |
| ErrorDocument 500 (Internal Server Error) | - |
| ForceType | - |
| Options | in dev |
| Options -Indexes | - |
| Options +Indexes | - |
| mod_access_compat directives | status |
|---|---|
| Allow | - |
| Allow from all | - |
| Allow from host | - |
| Allow from host [host] ... | - |
| Allow from ip | - |
| Allow from ip [ip] ... | - |
| Allow from network/netmask | - |
| Allow from network/nnn-CIDR | - |
| Allow from env= | - |
| Deny | - |
| Deny from all | - |
| Deny from host | - |
| Deny from host [host] ... | - |
| Deny from ip | - |
| Deny from ip [ip] ... | - |
| Deny from network/netmask | - |
| Deny from network/CIDR | - |
| Deny from env= | - |
| Order | - |
| Order Allow,Deny | - |
| Order Deny,Allow | - |
| Satisfy | - |
| Satisfy All | - |
| Satisfy Any | - |
| mod_alias directives | status |
|---|---|
| Redirect | - |
| RedirectPermanent | - |
| RedirectTemp | - |
| RedirectMatch | - |
| mod_dir directives | status |
|---|---|
| DirectoryCheckHandler | - |
| DirectoryIndex | in dev |
| DirectoryIndex local-url | - |
| DirectoryIndex local-url [local-url]... | - |
| DirectoryIndex disabled | - |
| DirectoryIndexRedirect | - |
| DirectorySlash | - |
| FallbackResource | in dev |
| FallbackResource local-url | - |
| FallbackResource disabled | - |
| mod_rewrite directives | status |
|---|---|
| RewriteEngine | - |
| RewriteOptions | - |
| RewriteBase | - |
| RewriteCond | - |
| RewriteRule | - |
| mod_authn_core directives | status |
|---|---|
| Require | - |
| AuthType | - |
| AuthName | - |
| mod_authn_file directives | status |
|---|---|
| AuthUserFile | - |
| mod_authz_groupfile directives | status |
|---|---|
| AuthGroupFile | - |
License
htfaker is dual licensed under The MIT License or the GNU General Public License, at your choosing.
Read the LICENSE.md file for more info.
TODO
- use https://github.com/tivie/php-htaccess-parser? - Apache License
- use https://github.com/jaytaph/HTRouter?
- use http://pecl.php.net/package/htscanner?
统计信息
- 总下载量: 29
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 7
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: (MIT or GPL-3.0+) 56d7ce73815e7f972841c5673f8c0b0eddda7e8c
- 更新时间: 2016-07-26