ben1024
V2EX  ›  PHP

[推荐] prestissimo, Composer 并行加速下载插件

  •  
  •   ben1024 · Jun 13, 2019 · 3136 views
    This topic created in 2549 days ago, the information mentioned may be changed or developed.

    prestissimo (composer plugin)

    github 原地址 prestissimo

    使用了下安装速度蛮快的。

    要求

    • composer >=1.0.0 (includes dev-master)
    • PHP >=5.3, (suggest >=5.5, because curl_share_init)
    • ext-curl

    安装

    $ composer global require hirak/prestissimo
    

    卸载

    $ composer global remove hirak/prestissimo
    

    基准测试效果

    288s -> 26s

    $ composer create-project laravel/laravel laravel1 --no-progress --profile --prefer-dist
    

    laravel

    配置

    prestissimo ^0.3.x

    自动识别作曲家的配置.不需要做其他改动

    作曲家身份验证(需要 github 授权才能用到,例如 symfony/thanks )

    To avoid Composer asking for authentication it is recommended to follow the procedure on composer's authentication.

    For github.com you could also use an auth.json file with an oauth access token placed on the the same level as your composer.json file:

    {
        "github-oauth": {
            "github.com": "YOUR_GITHUB_ACCESS_TOKEN"
        }
    }
    

    许可证

    MIT License. See the LICENSE file.

    1 replies    2019-06-19 11:52:13 +08:00
    ritaswc
        1
    ritaswc  
       Jun 19, 2019
    啧啧 有点意思
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2814 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 01:24 · PVG 09:24 · LAX 18:24 · JFK 21:24
    ♥ Do have faith in what you're doing.