Reading Quick Start for CakePHP 5.x.
Just tried running the Docker command on a MacOS.
Got these results:
$ docker run -it --rm -v $(pwd):/app composer create-project \
--prefer-dist cakephp/app:~5.3 my_app
Unable to find image 'composer:latest' locally
latest: Pulling from library/composer
5de55e5ef9c0: Pull complete
af2c4225b254: Pull complete
109df5f88e76: Pull complete
8ddc0ae81e1d: Pull complete
34777e0a4a99: Pull complete
56bbc24293c6: Pull complete
4fa1e34be36a: Pull complete
26f6a3c1b288: Pull complete
2beff9da5c62: Pull complete
9cece2308e96: Pull complete
d6ceec2ab071: Pull complete
8a89e0825c08: Pull complete
ea7e2f4e42a3: Pull complete
5c47030aa2f3: Pull complete
Digest: sha256:7725eb4545c438629ae8bde3ef0bb9a5038ef566126ad878442a69007242d267
Status: Downloaded newer image for composer:latest
Creating a "cakephp/app:~5.3" project at "./my_app"
Installing cakephp/app (5.3.1)
- Downloading cakephp/app (5.3.1)
- Installing cakephp/app (5.3.1): Extracting archive
Created project in /app/my_app
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Root composer.json requires cakephp/cakephp 5.3.* -> satisfiable by cakephp/cakephp[5.3.6].
- cakephp/cakephp 5.3.6 requires ext-intl * -> it is missing from your system. Install or enable PHP's intl extension.
Alternatively you can require one of these packages that provide the extension (or parts of it):
Keep in mind that the suggestions are automated and may not be valid or safe to use
- phuture/continuum A forward-compatibility layer bringing tomorrow’s PHP features to today’s runtimes.
Problem 2
- Root composer.json requires cakephp/debug_kit ^5.2 -> satisfiable by cakephp/debug_kit[5.2.0, ..., 5.2.4].
- cakephp/cakephp 5.3.6 requires ext-intl * -> it is missing from your system. Install or enable PHP's intl extension.
Alternatively you can require one of these packages that provide the extension (or parts of it):
Keep in mind that the suggestions are automated and may not be valid or safe to use
- phuture/continuum A forward-compatibility layer bringing tomorrow’s PHP features to today’s runtimes.
- cakephp/debug_kit[5.2.0, ..., 5.2.4] require cakephp/cakephp ^5.1 -> satisfiable by cakephp/cakephp[5.3.6].
To enable extensions, verify that they are enabled in your .ini files:
- /usr/local/etc/php/php-cli.ini
- /usr/local/etc/php/conf.d/docker-php-ext-bz2.ini
- /usr/local/etc/php/conf.d/docker-php-ext-sodium.ini
- /usr/local/etc/php/conf.d/docker-php-ext-zip.ini
You can also run `php --ini` in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with `--ignore-platform-req=ext-intl` to temporarily ignore these required extensions.
It then worked when I added --ignore-platform-reqs to the command:
$ docker run --rm -v $(pwd):/app composer create-project --ignore-platform-reqs --prefer-dist cakephp/app:~5.3 my_app
Expected? Should we update docs to reflect that?
Reading Quick Start for CakePHP 5.x.
Just tried running the Docker command on a MacOS.
Got these results:
It then worked when I added
--ignore-platform-reqsto the command:Expected? Should we update docs to reflect that?