bootie / project
Bootie PHP 5 框架集成示例项目
dev-master
2016-11-30 17:46 UTC
Requires
- php: >=5.3.0
- bootie/bootie: dev-master
This package is not auto-updated.
Last update: 2024-09-25 22:53:14 UTC
README
PHP 5 微型 Web 应用程序框架
基于 David Pennington 的 Micromvc
这是一个 Bootie 框架集成示例项目
您可以在此项目的在线演示中看到
您还可以看到REST 示例
您也可以克隆一个骨架项目
此项目包括
- 带有图片和标签的帖子 CMS 和首页
- 静态页面
- 认证系统
改进
- 调度方法简化
- 基于路由请求方法
- 多个数据库连接
- 过滤器
- 速度缓存
- 模型分页
- 闪存消息
安装
拉取库
$ composer install
在此处创建一个空数据库并设置您的访问凭据
$ cat config/config.sample.php > config/config.php
$ nano config/config.php
使用 Micro 迁移工具运行
$ php cli create
$ php cli restore
Nginx
Nginx 建议的指令
server {
root /var/www/bootie/public; index index.php index.html index.htm; server_name bootie.local; location / { try_files $uri $uri/ /index.php$is_args$args; } location ~ \.php$ { fastcgi_pass unix:/var/run/php5-fpm.sock; fastcgi_index index.php; include fastcgi_params; }
}
现在您可以登录了
username: admin
password: admin