CakePHPのDebugKitをインストール(NetBeansで)

環境


CakePHPの空プロジェクトをGitHubにコミット(NetBeansで) - ikechampionのブログ

DebugKitをインストール

プロジェクトを選択して右クリック
「コンポーザー」>「更新(dev)」で

C:\xampp\php\php.exe C:\ProgramData\Composer\bin\composer --ansi --no-interaction update

# This file must be saved with Unix line endings, or cygwin will choke

DIR=`dirname "$0"`;
DIRECTORY=$(cd "${DIR}" && pwd)

if command -v 'cygpath' >/dev/null 2>&1; then
  DIRECTORY=`cygpath -m $DIRECTORY`;
fi

PHAR="$(echo $DIRECTORY | sed 's/ /\ /g')/composer.phar"
php "${PHAR}" $*
完了。

インストールできない。「ツール」>「オプション」>「PHP」>「コンポーザ」で
コンポーザーのパスを「C:\ProgramData\ComposerSetup\bin\composer.phar」に変えたら

"C:\xampp\php\php.exe" "C:\ProgramData\ComposerSetup\bin\composer.phar" "--ansi" "--no-interaction" "install" "--dev"
Loading composer repositories with package information
Installing dependencies (including require-dev)
  - Installing composer/installers (v1.0.18)
    Downloading: 100%

  - Installing symfony/yaml (v2.5.5)
    Downloading: 100%

  - Installing phpunit/php-text-template (1.2.0)
    Downloading: 100%

  - Installing phpunit/phpunit-mock-objects (1.2.3)
    Downloading: 100%

  - Installing phpunit/php-timer (1.0.5)
    Downloading: 100%

  - Installing phpunit/php-token-stream (1.2.2)
    Downloading: 100%

  - Installing phpunit/php-file-iterator (1.3.4)
    Downloading: 100%

  - Installing phpunit/php-code-coverage (1.2.18)
    Downloading: 100%

  - Installing phpunit/phpunit (3.7.37)
    Downloading: 100%

  - Installing cakephp/debug_kit (2.2.4)
    Downloading: 100%

phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)
Writing lock file
Generating autoload files
完了。

config/bootstarap.php

App::build(array('Plugin' => array(ROOT . DS . 'Plugin' . DS)));
require ROOT . DS . 'Vendor' . DS . 'autoload.php';
 
// https://github.com/composer/composer/commit/c80cb76b9b5082ecc3e5b53b1050f76bb27b127b を参照
spl_autoload_unregister(array('App', 'load'));
spl_autoload_register(array('App', 'load'), true, true);
 
CakePlugin::loadAll();