For over a day I have been trying to start a CakePHP 3 project. When I run the composer install command, I get the following error:
cakephp/cakephp 3.3.x requires ext-intl * -> the requested PHP extension intl is missing from your system.
I am using MacOS Sierra 10.12.2. XCode and all that jazz are fully up-to-date. I am running PHP 5.6.25 via MAMP Pro 4.0.1 (3985). And I am trying to install CakePHP 3.3.x through my terminal, which is using ZSH instead of Bash.
I've spent quite a while trying to get intl installed. And by now I'm pretty confident that it is indeed installed:
- When I run
php -mI see
intlin the list of PHP modules.
- I have
extension=intl.soin my php.ini, located in
- The file
intl.sois located in the directory
- On MAMP's phpinfo page I can see
'--enable-intl'in the Configure Command cell. Further down the page, it has its own table, showing that internationalization is supported with version 1.1.0. However, in this table, for the row
intl.default_localethe value is
no value. Could this be my problem?
- In my
~/.zshrcfile I have
alias php="/Applications/MAMP/bin/php/php5.6.25/bin/php"so I can be sure I'm using the correct version and installation of PHP.
I hope I haven't ruined anything by trying to use so many articles and StackOverflow answers to get this working. I know there are a number of similar
intl questions here, but so far I've had no luck with any answers.
So I suppose here are my two main questions:
- Is the evidence I listed above enough to suggest I truly have the
intlextension correctly installed, and why does CakePHP still complain about the extension being missed if it is correctly installed?
- If it is not correctly installed, how can I correct this and get CakePHP to install?