初心者でもできる!さっそくCakePHP3.0をインストールしてみよう!

2015年03月28日(土)
さぁ、前回のTipsでComposerをインストールしたので早速CakePHP3をComposerさんを使ってインストールしてみるでよ。
前回のComposerさんをインストールするTipsはこちら
ではインストールしてみましょう。
CakePHPさんの手順通り、インストールしたいディレクトリにて以下を実行
php composer.phar create-project --prefer-dist cakephp/app sandbox
ぐわし!!なんかただならぬエラー感。
Problem 1 - cakephp/cakephp 3.1.x-dev requires ext-intl * -> the requested PHP extensi on intl is missing from your system. - cakephp/cakephp 3.0.x-dev requires ext-intl * -> the requested PHP extensi on intl is missing from your system. - cakephp/cakephp 3.0.0-beta3 requires ext-intl * -> the requested PHP exten sion intl is missing from your system. - cakephp/cakephp 3.0.0-beta2 requires ext-intl * -> the requested PHP exten sion intl is missing from your system. - cakephp/cakephp 3.0.0-beta1 requires ext-intl * -> the requested PHP exten sion intl is missing from your system. - cakephp/cakephp 3.0.0-alpha2 requires ext-intl * -> the requested PHP exte nsion intl is missing from your system. - cakephp/cakephp 3.0.0-alpha1 requires ext-intl * -> the requested PHP exte nsion intl is missing from your system. - cakephp/cakephp 3.0.0-RC2 requires ext-intl * -> the requested PHP extensi on intl is missing from your system. - cakephp/cakephp 3.0.0-RC1 requires ext-intl * -> the requested PHP extensi on intl is missing from your system. - cakephp/cakephp 3.0.0 requires ext-intl * -> the requested PHP extension i ntl is missing from your system. - Installation request for cakephp/cakephp ~3.0 -> satisfiable by cakephp/ca kephp[3.0.0, 3.0.0-RC1, 3.0.0-RC2, 3.0.0-alpha1, 3.0.0-alpha2, 3.0.0-beta1, 3.0. 0-beta2, 3.0.0-beta3, 3.0.x-dev, 3.1.x-dev].
まぁこれはまだまだ。ただのエクステンション不足ぽいね。
CakePHPさんのいいつけを守らないからこういうことになるんだよ。
なので。
;extension=php_intl.dll
extension=php_intl.dll
こうしてあげて、よし、もう一回。
php composer.phar create-project --prefer-dist cakephp/app sandbox
どんどんインストールが進んでいきます。
・・
・
・
よし、作られた。コマンドってなんか気持ちいいよね。
実行してる感がなんだか、するよね!
そして新しいレイアウトな画面の登場です!
よくできました!
めでたしめでたし!!さぁ開発すっぞーーー!!