使用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?

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