bootie / rest
Bootie PHP 5 框架 REST 示例项目
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:58:42 UTC
README
PHP 5 微型 Web 应用框架
基于 David Pennington 的 Micromvc
这是一个 Bootie 框架 REST 示例项目
您可以在此项目的在线演示中查看
您还可以查看此项目的集成示例项目
您还可以查看此项目的REST 示例项目
您还可以克隆一个骨架项目
改进
- 调度方法简化
- 基于路由请求方法
- 多数据库连接
- 过滤器
- 速度缓存
- 模型分页
- 闪存消息
安装
拉取库
$ 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