Git Product home page Git Product logo

blankphp's Introduction

BlankPhp.png

996.icu LICENSE Build Status PHP Version Version codecov

介绍

一个满足于基本开发的MVC轻量级框架route IOC DB view middleware已经设计完基本使用

hahah.png

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.