Force composer to require PHP Version between Version X and Version Y

前端 未结 6 615
孤街浪徒
孤街浪徒 2020-12-23 13:14

we have a mix of different PHP versions running on your servers (max 5.3.5) and development machines (max 5.5.9).

Now we ran into the problem that we did a \"compose

6条回答
  •  礼貌的吻别
    2020-12-23 13:48

    Since the config parameter in composer.json is available. You could something like this:

    {
        "name": ".../...",
        "config": {
            "platform": {
                "php": "5.3.5"
            }
        },
        "require": {
            ...
        }
    } 
    

    https://getcomposer.org/doc/06-config.md#platform

提交回复
热议问题