V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
ben1024
V2EX  ›  PHP

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

  •  
  •   ben1024 · 2019-06-13 13:50:18 +08:00 · 2680 次点击
    这是一个创建于 1800 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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 条回复    2019-06-19 11:52:13 +08:00
    ritaswc
        1
    ritaswc  
       2019-06-19 11:52:13 +08:00
    啧啧 有点意思
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2482 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 02:06 · PVG 10:06 · LAX 19:06 · JFK 22:06
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.