###前提・実現したいこと
OS 10.12.6でXAMPP7.1.10 / PHP 7.1.10を使い、cakePHP3を導入しようとしています。
https://www.amazon.co.jp/PHP%E3%83%95%E3%83%AC%E3%83%BC%E3%83%A0%E3%83%AF%E3%83%BC%E3%82%AF-CakePHP-3%E5%85%A5%E9%96%80-%E6%8E%8C%E7%94%B0-%E6%B4%A5%E8%80%B6%E4%B9%83/dp/4798048577
「PHPフレームワーク CakePHP3入門」の本の通りに環境構築を進めています。
###発生している問題・エラーメッセージ
Installing cakephp/app (3.5.0)
- Installing cakephp/app (3.5.0): Loading from cache
Created project in cake3app
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- cakephp/cakephp 3.5.4 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.5.3 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.5.2 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.5.1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.5.0 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- Installation request for cakephp/cakephp 3.5.* -> satisfiable by cakephp/cakephp[3.5.0, 3.5.1, 3.5.2, 3.5.3, 3.5.4].
To enable extensions, verify that they are enabled in your .ini files:
- /Applications/XAMPP/xamppfiles/etc/php.ini
You can also run php --ini
inside terminal to see which files are used by PHP in CLI mode.
###該当のソースコード
$ php composer.phar create-project --prefer-dist cakephp/app cake3app
###試したこと
まず、XAMPPの中のファイルにある「php.ini」の文頭にテキストエディタで「extension=php_intl.so」と加えました。
「ターミナルから環境変数PATHへの追加」も行い、XAMPPにあるPHPが実行されるようにしました。
そしてcomposerをダウンロードして、composer.pharを使ってcakephpをインストールする段階で、「intlが見つからない」と出てきて詰まっています。
このようなトラブルはMacでは起きやすいとのことで、本に書いてある通り、XcodeとCommand Line Toolをインストールしたのち、HomeBrewをインストールし、intlとautoconfをインストールしましたが、結局うまく行きません。
ご回答のほど、何卒よろしくお願い致します。
###補足情報(言語/FW/ツール等のバージョンなど)
より詳細な情報

バッドをするには、ログインかつ
こちらの条件を満たす必要があります。