一个满足于基本开发的MVC轻量级框架
route
IOC
DB
view
middleware
已经设计完基本使用
1.本框架意义在于理解IOC容器,以及依赖注入的**
2.本框架富含基本容器以及依赖注入
3.框架具有路由以及中间件和基本orm功能,满足一个基本的快速开发概念
4.后期设计会采用到swoole,来增加速度
5.安全方面目前还没有考虑<正在学习php安全相关>
书写该框架的流程,以及遇到的问题,会整理出来!
文档正在书写中,但是有点忙,请等待
初步建设小型容器,满足基础的mvc服务,如何写出的会以文章形式公布
1.web路由在routes/web.php中注册
2.api路由在routes/api.php注册
3.中间件注册在MiddleWareProvider中注册
3.模型设计暂未完成,但是基本的Database设计完成
4.暂时方便测试所以就没怎么测试
composer create-project blankqwq/blankphp:"dev-master" <name>
root "<目录>/public";
location / {
try_files $uri $uri/ /index.php?$query_string;
}
nginx配置好重写规则
4.22去除Cache中间层代理,直接由各部分完成,这样比较快
signal 可以去除,
完善session,cookie以及database等
下一步完善request
然后就断更了····再去思考整个架构先,n
Server Software: nginx/1.15.5
Server Hostname: www.stu.stu
Server Port: 80
Document Path: /
Document Length: 504 bytes
Concurrency Level: 100
Time taken for tests: 154.578 seconds
Complete requests: 10000
Failed requests: 0
Total transferred: 7770000 bytes
HTML transferred: 5040000 bytes
Requests per second: 64.69 [#/sec] (mean)
Time per request: 1545.784 [ms] (mean)
Time per request: 15.458 [ms] (mean, across all concurrent requests)
Transfer rate: 49.09 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 1 0.7 1 15
Processing: 138 1538 115.6 1530 2110
Waiting: 61 1538 115.7 1530 2109
Total: 138 1539 115.6 1531 2111
Percentage of the requests served within a certain time (ms)
50% 1531
66% 1557
75% 1576
80% 1590
90% 1640
95% 1708
98% 1777
99% 1825
100% 2111 (longest request)