overlu / mini
A simple, lightweight and high-performance PHP coroutine framework.
Installs: 117
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 0
Forks: 1
Open Issues: 0
Type:project
Requires
- php: >=8.0
- ext-swoole: >=4.5
- overlu/mini-framework: ~3.2.0
Requires (Dev)
- deployer/deployer: ^7.4
- overlu/var-dumper: ^1.0
- phpunit/phpunit: ^9.2
- dev-master
- v3.2
- v3.1.8
- v3.1.6
- v3.1.5
- v3.1.1
- v3.0.1
- v2.15.0
- v2.13.31
- v2.13.28
- v2.13.23
- v2.13.20
- v2.13.12
- v2.13.10
- v2.13.1
- v2.12.48
- v2.12.47
- v2.12.43
- v2.12.41
- v2.12.27
- v2.12.26
- v2.12.20
- v2.12.16
- v2.12.10
- v2.12.8
- v2.12.0
- v2.10.30
- v2.10.27
- v2.10.21
- v2.10.19
- v2.10.18
- v2.10.15
- v2.10.3
- v2.9.1
- v2.8.6
- v2.8.2
- v2.8.1
- v2.8.0
- v2.7.2
- v2.7.1
- v2.7.0
- v2.6.0
- v2.3.0
- v2.2.2
- v2.2.1
- v2.2.0
- v2.1.3
- v2.1.1
- v2.1.0
- v2.0.0
- v1.3.5
- v1.3.3
- v1.3.1
- v1.3.0
- v1.2.11
- v1.2.10
- v1.2.9
- v1.2.7
- v1.2.4
- v1.2.3
- v1.2.2
- v1.2.1
- v1.1.18
- v1.1.17
- v1.1.15
- v1.1.12
- v1.1.11
- v1.1.8
- v1.1.5
- v1.1.4
- v1.1.3
- v1.1.1
- v1.1.0
- v1.0.26
- v1.0.10
- v1.0.9
- v1.0.8
- v1.0.7
- v1.0.3
- v1.0.2
- v1.0.1
- v1.0.0
- dev-dev
This package is auto-updated.
Last update: 2025-03-16 07:35:33 UTC
README
Mini, 基于swoole4+
和php8
的协程框架
_______ _____ __ _ _____
| | | | | \ | |
| | | __|__ | \_| __|__ 3.0.1
**********************************************************************************************
* App Information | Name: Mini, Env: Local, Timezone: UTC
* System Information | OS: Linux-4.4.0-22621-Microsoft-x86_64, PHP: 8.1.27, Swoole: 4.8.10
**********************************************************************************************
2024/01/05 08:57:00 🚀 mini http server [8 workers] running:0.0.0.0:9501...
2024/01/05 08:57:00 👀 watching start...
2024/01/05 08:57:00 📡 watching [40] files...
Install Mini
composer create-project overlu/mini
Run Mini
php bin/mini start
More
Performance Testing
2CPU/2G
➜ ab -n 5000 -c 10 http://127.0.0.1:9501/ This is ApacheBench, Version 2.3 <$Revision: 1843412 $> Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ Licensed to The Apache Software Foundation, http://www.apache.org/ Benchmarking 127.0.0.1 (be patient) Completed 500 requests Completed 1000 requests Completed 1500 requests Completed 2000 requests Completed 2500 requests Completed 3000 requests Completed 3500 requests Completed 4000 requests Completed 4500 requests Completed 5000 requests Finished 5000 requests Server Software: Mini Server Hostname: 127.0.0.1 Server Port: 9501 Document Path: / Document Length: 141 bytes Concurrency Level: 10 Time taken for tests: 0.714 seconds Complete requests: 5000 Failed requests: 0 Total transferred: 1730000 bytes HTML transferred: 705000 bytes Requests per second: 6998.25 [#/sec] (mean) Time per request: 1.429 [ms] (mean) Time per request: 0.143 [ms] (mean, across all concurrent requests) Transfer rate: 2364.64 [Kbytes/sec] received Connection Times (ms) min mean[+/-sd] median max Connect: 0 0 0.2 0 2 Processing: 0 1 0.4 1 4 Waiting: 0 1 0.4 1 4 Total: 1 1 0.4 1 5 Percentage of the requests served within a certain time (ms) 50% 1 66% 1 75% 2 80% 2 90% 2 95% 2 98% 3 99% 3 100% 5 (longest request)