LoginSignup
1
1

More than 5 years have passed since last update.

cakephp2.xにComposerを使ってDebugKitを導入する

Last updated at Posted at 2015-05-26

今更感あるけど、ggってすぐに出てこなかったので、メモ。
cakeインストール時のcomposer.jsonをそのまま使ってcomposer.phar installすると、debugkitが見つからないよ、というエラーになるので、その対策。

composer.json(修正前)
  "require": {
    "php": ">=5.2.8",
    "ext-mcrypt": "*",
    "cakephp/debug_kit" : "2.2.*"
  }, 
composer.json(修正後)
  "extra": {
    "installer-paths": {
      "app/Plugin/DebugKit": ["cakephp/debug_kit"]
    }   
  },  
  "require": {
    "php": ">=5.2.8",
    "ext-mcrypt": "*",
    "cakephp/debug_kit" : "2.2.*"
  },
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1