Composer Dev Install Fails.

I’m using Mac OS X 10.8.5. PHP 5.4.32 is loaded (as reported by phpinfo(), with an Apache server. brew is installed (fyi)

I’m brand new to Composer and have not used it until this installation attempt.

The following errors are reported when I attempt the install with the --stability=dev option (from the Yii 2.0 documentation:

[indent]Your requirements could not be resolved to an installable set of packages.

Problem 1

- The requested package php could not be found in any version, there may be a typo in the package name.

Problem 2

- The requested package php could not be found in any version, there may be a typo in the package name.

Problem 3

- yiisoft/yii2 2.0.x-dev requires php >=5.4.0 -> no matching package found.


- yiisoft/yii2 dev-master requires php >=5.4.0 -> no matching package found.


- yiisoft/yii2 2.0.0-beta requires php >=5.4.0 -> no matching package found.


- yiisoft/yii2 2.0.0-alpha requires php >=5.4.0 -> no matching package found.


- Installation request for yiisoft/yii2 * -> satisfiable by yiisoft/yii2[2.0.0-alpha, 2.0.0-beta, dev-master, 2.0.x-dev].

Potential causes:

  • A typo in the package name

  • The package is not available in a stable-enough version according to your minimum-stability setting[/indent]

Any help would be greatly appreciated. Thank you.

I managed to get the DEV version (–stability=dev) to install Yii2.0 and load the template page in a browser.

It turns out the Brew steps were interrupted and did not completely finish the PHP Brew update . This resulted in Apache using the updated PHP version, but Composer was not (I don’t know why).

I went back, finished the PHP Brew process, including a subsequent, additional Brew process for MCrypt.

After the Brew successfully finished, I installed Yii2.0 using the Composer command (development version).

p.s. I think the STABLE version command is still "broken". (Refer to my other post regarding the unsuccessful Yii2.0 install, perhaps due to the Composer update).

Best regards,

Mike K.

We don’t have stable version yet.