• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

yaf-api: yaf + medoo ,打造极致高性能 api接口开发框架

原作者: [db:作者] 来自: 网络 收藏 邀请

yaf-api

介绍

运行配置:yaf扩展 + pdo扩展 + phpredis扩展

yaf + medoo ,打造极致高性能高可用api接口开发框架

提供Model层(数据库数据),

Cache层(redis等数据),

Service层(数据整合层),

Tool(工具类)

nginx 配置

server {

    listen       80;    server_name  y.cboot.net;    root         /data/wwwroot/yaf-api;        # Load configuration files for the default server block.    include /etc/nginx/default.d/*.conf;    index  index.php index.html index.htm;        location  / {        if (!-e $request_filename) {           rewrite ^/(.*) /index.php?$1 last;       #重要 , yaf官方的是错误的,应该按照这种配置         }     }        error_page 404 /404.html;        location = /40x.html {    }        error_page 500 502 503 504 /50x.html;        location = /50x.html {    }        location ~.php$ {     fastcgi_pass 127.0.0.1:9000;    fastcgi_index index.php;    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;    include    fastcgi_params;    }}

致谢

1.yaf(文档) : https://www.php.net/manual/zh/intro.yaf.php -/- http://www.laruence.com/manual/index.html

2.medoo(文档) : https://medoo.lvtao.net -/- https://medoo.lvtao.net

3.微博: https://weibo.com

4.新浪金融: http://jr.sina.com.cn

5.码云: https://gitee.com


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap