yafApi:使用yaf和swoole_http_server,专注于高性能api接口服务,异步任务..

时间:2021-05-15 07:32:30
【文件属性】:
文件名称:yafApi:使用yaf和swoole_http_server,专注于高性能api接口服务,异步任务..
文件大小:17KB
文件格式:ZIP
更新时间:2021-05-15 07:32:30
swoole yaf PHP yaf+swoole_http_server ##项目描述 使用swoole_http_server + yaf 专注于网站api接口,同时能处理异步任务,如异步发送邮件,发送短信验证码等耗时相对长一点的任务 本项目兼容php-fpm模式,不过在异步任务调用处要调整 参照 参照 ##使用说明 //1.安装yaf,swoole扩展 composer install composer dump-autoload -o //2.配置Nginx反向代理,将所有请求代理到swoole端口上,配置如下 location / { proxy_set_header Connection "keep-alive"; proxy_set_header Host $http_host; proxy_http_version 1.1; proxy_pass http://127.0.0.1:9501;
【文件预览】:
yafApi-master
----.gitignore(22B)
----public()
--------.htaccess(1B)
--------index.php(432B)
--------http_server.php(4KB)
----composer.json(130B)
----README.md(1KB)
----application()
--------library()
--------models()
--------views()
--------helper()
--------controllers()
--------plugins()
--------logs()
--------Bootstrap.php(3KB)
----conf()
--------application.ini(1KB)

网友评论