sgenmi/eyaf
最新稳定版本:v1.1.0
Composer 安装命令:
composer require sgenmi/eyaf
包简介
An efficient Yaf framework
关键字:
README 文档
README
- 安装Yaf
wget http://pecl.php.net/get/yaf-3.2.5.tgz tar zxvf yaf-3.2.5.tgz cd yaf-3.2.5 phpize [注意:phpize的路径,环境不同可能路径] ./configure --with-php-config=php-config [注意:php-config的路径,环境不同可能路径] make && sudo make install
- 编辑php.ini
- 在php.ini中增加如下代码
extension=yaf.so
;PHP_INI_SYSTEM php.ini
yaf.use_namespace=1
;ini_set, php.ini
yaf.name_suffix=0
yaf.use_spl_autoload=1
yaf.name_separator=\;
- 初始化项目
composer require sgenmi/eyaf
php vendor/bin/eyaf install
- nginx 配置
server {
listen 8080;
server_name xx.com ;
access_log off;
index index.html index.htm index.php;
# 项目路径
root /var/www/xxxx/public;
#error_page 404 /404.html;
#error_page 502 /502.html;
location / {
try_files $uri $uri/ /index.php?$args;
}
#根据实际环境修改
location ~ [^/]\.php(/|$) {
#fastcgi_pass remote_php_ip:9000;
fastcgi_pass unix:/dev/shm/php-cgi.sock;
fastcgi_index index.php;
include fastcgi.conf;
}
location ~ /\.ht {
deny all;
}
location ~ /\.git {
deny all;
}
location ~ /\.md {
deny all;
}
}
⼆. 数据模型:Medoo
//注: 采⽤开源medoo作为框架的model,兼容medoo所有语法
Medoo 文档
官网文档: https://medoo.in/
特别感谢Medoo作者,开源这么小巧 好用的类库
统计信息
- 总下载量: 420
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 12
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2020-03-13