cakephpの2.0.5をcomposerでinstallしようとしたらなんか上手く行かなかったので
自分で追加しました。
ついでにcomposer.jsonの使い方のメモとして残そうと思います。
composer.json
{
"repositories": [
{
"type": "package",
"package": {
"name": "cakephp/cakephp",
"version": "2.0.5",
"source": {
"url": "https://github.com/cakephp/cakephp",
"type": "git",
"reference": "2.0.5"
}
}
}
],
"require": {
"cakephp/cakephp": "2.0.5"
}
}実行
curl -s http://getcomposer.org/installer | php php composer.phar install
"repositories" → "source" → "reference"
の中でgitのtagを指定してあげればそのバージョンを指定することが出来る。
Welcome to CakePHP v2.0.5 Console --------------------------------------------------------------- App : Console Path: /tmp/composer-try/vendor/cakephp/cakephp/app/Console/ ---------------------------------------------------------------
というように
tarata/composer-try at composer-install-with-git-tag · GitHub