stevevega / kima-skeleton
使用Kima框架的PHP骨架应用
1.0.9
2016-02-03 19:52 UTC
Requires
- php: >=5.4.0
- stevevega/kima: 0.9.*
README
Kima PHP框架
用法
- 安装composer
- 执行 "composer create-project stevevega/kima-skeleton [目标路径]"
- 让您的web服务器指向 [目标路径]/public
示例nginx服务器配置
server {
listen 80;
server_name [YOUR_DOMAIN];
root [DESTINATION_PATH]/public;
index index.html index.htm index.php;
location / {
# This is cool because no php is touched for static content
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
# Filter out arbitrary code execution
location ~ \..*/.*\.php$ {return 404;}
include fastcgi_params;
fastcgi_param SERVER_NAME $http_host;
fastcgi_pass unix:/tmp/php.socket;
}
}