php-amqplib を Windows-Xampp環境で

php-amqplibを利用するときにComposerで必要ライブラリを取得する必要があった。
D:\xampp177\htdocs\amqplib に配置したとしてその時のメモ
ComposerのサイトにはWindows Installerもあるがそれではない。

D:\xampp177\php>php -r "eval('?>'.file_get_contents('http://getcomposer.org/installer'));"
#!/usr/bin/env php
All settings correct for using Composer
Downloading...

Composer successfully installed to: D:\xampp177\php\composer.phar
Use it: php composer.phar

D:\xampp177\php>php composer.phar --version
Composer version 4ebc5c9a08ba3a4861e050463d5d40204b5cdedf 2014-07-24 14:01:42

D:\xampp177\php>echo @php "%~dp0composer.phar" %*>composer.bat

D:\xampp177\php>composer --version
Composer version 4ebc5c9a08ba3a4861e050463d5d40204b5cdedf 2014-07-24 14:01:42

D:\xampp177\php>PATH d:\xampp177\php

D:\xampp177\php>cd D:\xampp177\htdocs\amqplib

D:\xampp177\htdocs\amqplib>composer install
Loading composer repositories with package information
Installing dependencies (including require-dev)
- Installing symfony/yaml (v2.5.2)
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.17)
Downloading: 100%

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

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

D:\xampp177\htdocs\amqplib>