yangs1/lsf

Just a easy lumen swoole Framework.

Maintainers

Details

github.com/yangs1/lsf

Source

Issues

Installs: 6

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

Type:project

1.21 2017-12-15 09:29 UTC

This package is not auto-updated.

Last update: 2022-01-26 09:45:24 UTC


README

这是一个利用 lumen 组件 + swoole 的 http server 重新组合的 php 框架。

本框架保留了 lumen 原始结构,保留了 lumen 常用的组件,保留 lumen IOC 服务容器的模式,以便其他组件/扩展的添加。

简单用法

    php server.php start | reload | stop | status

性能测试

    ab -n 1000 -c 100 http://127.0.0.1:9501/
    
    Concurrency Level:      100
    Time taken for tests:   0.173 seconds
    Complete requests:      1000
    Failed requests:        0
    Total transferred:      210000 bytes
    HTML transferred:       21000 bytes
    Requests per second:    5783.59 [#/sec] (mean)
    Time per request:       17.290 [ms] (mean)
    Time per request:       0.173 [ms] (mean, across all concurrent requests)
    Transfer rate:          1186.09 [Kbytes/sec] received