Composer

composer install で the requested PHP extension intl is missing from your system と言われる解決方法

More than 3 years have passed since last update.

環境はMacです。

composer installできなくて困りました。

composer install

Loading composer repositories with package information
Installing dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- cakephp/cakephp 3.2.x-dev requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.1.4 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.1.3 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.1.2 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.1.1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.1.0-beta2 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.1.0-beta requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.1.0-RC1 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- cakephp/cakephp 3.1.0 requires ext-intl * -> the requested PHP extension intl is missing from your system.
- Installation request for cakephp/cakephp ~3.1 -> satisfiable by cakephp/cakephp[3.1.0, 3.1.0-RC1, 3.1.0-beta, 3.1.0-beta2, 3.1.1, 3.1.2, 3.1.3, 3.1.4, 3.2.x-dev].


php56-intlをインストールします。

brewでphpをいれていたのでphp56-intlを入れます。

brew install php56-intl


再度composer install

composer install

今度はうまくいきました(☝ ՞ਊ ՞)☝


参考

http://qiita.com/pugiemonn/items/c83f5ce318a634e60e4f

http://qiita.com/ykirishima/items/646844d462ea39af0c69