@
JasonTsang 首先 composer 在真正下载包的时候其实是有进度的,除非你通过--no-progress 关闭
λ ccomposer require laravel/framework
Using version ^6.5 for laravel/framework
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 41 installs, 0 updates, 0 removals
- Installing symfony/polyfill-ctype (v1.12.0): Downloading (100%)
- Installing phpoption/phpoption (1.5.2): Downloading (100%)
- Installing vlucas/phpdotenv (v3.6.0): Downloading (100%)
- Installing symfony/css-selector (v5.0.0): Downloading (100%)
- Installing tijsverkoyen/css-to-inline-styles (2.2.2): Downloading (100%)
- Installing symfony/polyfill-php72 (v1.12.0): Downloading (100%)
- Installing symfony/polyfill-mbstring (v1.12.0): Downloading (100%)
- Installing symfony/var-dumper (v4.4.0): Downloading (100%)
上面是一个例子,括号中的 100%其实是实时的下载进度。
---
其次,下载速度这东西还真是很多地方都没有的。比如,win10 的自动更新。
另外我猜你大概率不是科班出身,但秉持着不随意 BS 出身的原则,问你个简单的问题,你所想要的『下载速度』,如何获取 /计算?