toolmao/nearphp
Composer 安装命令:
composer require toolmao/nearphp
包简介
Simple PHP Functional combination.
关键字:
README 文档
README
Nearphp is a simple, open source PHP Functional combination. Include Router / Template .
Install
If you have Composer, just include Nearphp as a project dependency in your composer.json. If you don't just install it by downloading the .ZIP file and extracting it to your project directory.
require: {
"toolmao/nearphp": "dev-master"
}
Examples
This is with Nearphp installed via composer.
composer.json:
{
"require": {
"toolmao/nearphp": "dev-master"
},
"autoload": {
"psr-4": {
"" : ""
}
}
}
.htaccess(Apache):
RewriteEngine On
RewriteBase /
# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1 [QSA,L]
.htaccess(Nginx):
rewrite ^/(.*)/$ /$1 redirect;
if (!-e $request_filename){
rewrite ^(.*)$ /index.php break;
}
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-07-17