今回はチュートリアルに沿ってYii2をインストールして動かしてみます。
![]() |
| The Definitive Guide to Yii 2.0 |
Installing via Composerによると以下のコマンドでインストールできるとのこと。
$ composer global require "fxp/composer-asset-plugin:~1.0.3" $ composer create-project --prefer-dist yiisoft/yii2-app-basic basic
しかし、
The requested package fxp/composer-asset-plugin could not be found in any version, there may be a typo in the package name.という謎のメッセージ。。
。typoちゃうし。。
Packagistのfxp/composer-asset-pluginを確認すると新しいバージョンが出ている模様。困ったら最新版をインストール。
$ composer global require "fxp/composer-asset-plugin:1.1.0" $ composer create-project --prefer-dist yiisoft/yii2-app-basic basic
