douchui4459 2016-03-15 14:46
浏览 53
已采纳

使用Composer 3.1版安装CakePHP。*

My problem is that not all server run PHP 5.6 or above. So I need use a older version of CakePHP 3.1.* that support PHP 5.5.*/5.4.* .

The problem is the Composer install solution:

composer create-project --prefer-dist cakephp/app:3.1.9 demo

Gives me an error:

Could not find package cakephp/app with version 3.1.9

I have tried other version (3.1.11/12/10) without success. Is there a way or do I need to download the releases manually from GitHub every time?

  • 写回答

1条回答 默认 最新

  • douqinlin5094 2016-03-15 15:04
    关注

    cakephp/app is a different repository from cakephp/cakephp. So it follows it's own versioning.

    cakephp/app is a template/skeleton that you can use to create your app. While cakephp/cakephp is the main core.

    Check below for the cakephp/app:

    I guess you could use the version 3.1.2 of cakephp/app that allows you to have PHP >= 5.4

    https://github.com/cakephp/app/blob/3.1.2/composer.json#L8

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?