Composer. How to install a specific version of package based on user php version?

后端 未结 2 1604
清歌不尽
清歌不尽 2021-01-22 21:50

I have a two version of my package: for php7 and for php5. Is it possible to make composer determine when installing the package which version of php the user has, and depending

2条回答
  •  隐瞒了意图╮
    2021-01-22 22:33

    Install only one composer you can access this composer with different php version

    /usr/bin/php /usr/local/bin/composer
    /usr/bin/php7.1 /usr/local/bin/composer
    /usr/bin/php7.0 /usr/local/bin/composer
    

提交回复
热议问题