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

ThinkPHP 完成全版本 Composer2.0 兼容

  •  
  •   topthink · 2020-10-28 17:02:15 +08:00 · 3213 次点击
    这是一个创建于 1247 天前的主题,其中的信息可能已经有所发展或是发生改变。

    鉴于Composer2已经正式发布,官方第一时间进行了兼容测试,对 ThinkPHP5.0 、5.1 和 6.0 分别做了兼容更新,确保大家可以体验到Composer2的优势性能。

    因为composer/installed.json格式的变化导致 ThinkPHP6.0 扩展安装出错,只需要更新到最新的V6.0.5版本即可解决。

    5.0 和 5.1 版本由于不是强依赖 Composer,官方已经更新了 think-installer 库确保已经可以兼容 composer2.0 。

    现在已经可以通过 Composer2.0 愉快的使用 ThinkPHP 全版本了^_^ 希望大家尽早拥抱Composer,拥抱ThinkPHP

    6 条回复    2021-01-08 15:08:18 +08:00
    lscexpress
        1
    lscexpress  
       2020-10-28 17:05:05 +08:00
    太好了,昨天用 composer2 安装 tp5.1 还有问题,今天就搞好了
    lepig
        2
    lepig  
       2020-10-28 17:54:47 +08:00
    这修复速度可以的,支持一下
    aa81425600
        3
    aa81425600  
       2020-10-29 10:27:43 +08:00
    吐槽一下 composer2,各种报错给整蒙了,后来构建的时候把版本敲在了 1.10.16 没用 2 了
    hbolive
        4
    hbolive  
       2020-10-29 10:53:54 +08:00
    顶,这速度也是很快了!
    fudaoji
        5
    fudaoji  
       2020-11-02 08:53:13 +08:00
    composer create-project topthink/think=5.1.* tp5 安装 5.1 的好像还是有问题(如下):

    Failed to extract topthink/framework: (9) unzip -qq '/home/fdj/tp5/vendor/composer/tmp-2e11e0324ad62428d530f06a3aea3784' -d '/home/fdj/tp5/vendor/composer/fa090602'

    unzip: cannot find or open /home/fdj/tp5/vendor/composer/tmp-2e11e0324ad62428d530f06a3aea3784.

    This most likely is due to a custom installer plugin not handling the returned Promise from the downloader
    See https://github.com/composer/installers/commit/5006d0c28730ade233a8f42ec31ac68fb1c5c9bb for an example fix
    klgd
        6
    klgd  
       2021-01-08 15:08:18 +08:00
    我也出现 Failed to extract topthink/framework: (9) unzip -qq 问题
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3324 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 13:29 · PVG 21:29 · LAX 06:29 · JFK 09:29
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.