# yaf-api **Repository Path**: normalcoder/yaf-api ## Basic Information - **Project Name**: yaf-api - **Description**: yaf + medoo ,打造极致高性能 api接口开发框架 - **Primary Language**: PHP - **License**: Not specified - **Default Branch**: master - **Homepage**: http://cboot.net - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 3 - **Created**: 2019-04-30 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # yaf-api #### 介绍 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 3.好好住: https://www.haohaozhu.cn 4.微博: https://weibo.com 5.新浪金融: http://jr.sina.com.cn 6.码云: https://gitee.com