Help us understand the problem. What is going on with this article?

CakePHPの環境をMac上にcomposerで作る(リンク中心)

More than 3 years have passed since last update.

ちょっと必要に迫られたので。
CakePHPは3系のほうがいいのだろうけれども。

Composerでインストール

あまり詳しくないので下記などを感謝しつつつまみ読みしながら。
http://qiita.com/youukkari/items/806e506ad3925bd91881

composer.json はどうやらvendorディレクトリの指定などが必要そうだったので下記のようになった。また、バージョンをいくつか新しいものに変えた。
そうしないと途中で「あれ?Vendorってどれ?」みたいになる。他の情報を参照するとこう書いている人が多かったのでベストプラクティス的な何か?(詳しい人おしえて)

あとプラグインはとりあえず入れたけれどあとで調べてみようと思う。

{
  "extra": {
    "installer-paths": {
      "app/Plugin/Migrations": ["cakedc/migrations"],
      "app/Plugin/Users": ["cakedc/users"],
      "app/Plugin/Search": ["cakedc/search"],
      "app/Plugin/Utils": ["cakedc/utils"],
      "app/Plugin/Datasources": ["cakephp/datasources"],
      "app/Plugin/DebugKit": ["cakephp/debug_kit"],
      "app/Plugin/BoostCake": ["slywalker/boost_cake"],
      "app/Plugin/aws-sdk-php": ["aws/aws-sdk-php"]
    }
  },
  "require" : {
    "php": ">=5.2",
    "ext-mcrypt": "*",
    "cakedc/migrations": "2.3.*",
    "cakedc/users": "2.0.*",
    "cakedc/search": "2.2.*",
    "cakedc/utils": "1.4.*",
    "cakephp/datasources": "2.3.x-dev",
    "cakephp/cakephp" : "2.6.*",
    "slywalker/boost_cake": "dev-master",
    "aws/aws-sdk-php": "2.*"
  },
  "config": {
        "vendor-dir": "Vendor/"
  },
  "require-dev": {
    "phpunit/phpunit": "4.6.*"
  }
}

Migration は 下記のように真似してみたらあっさりできた。

http://www.sssg.org/blogs/hiro345/archives/15888.html

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away