使用composer从GitHub安装repo

时间:2014-03-24 22:12:43

标签: github repository composer-php

我试图将此测试扩展更新到我的项目但是我遇到了错误:

adz@adz:/var/www/site$ php composer.phar update
Loading composer repositories with package information Updating
dependencies (including require-dev)
Nothing to install or update

我也试过

adz@adz:/var/www/site$ php composer.phar require adz/yii2-featureditems:dev-master
./composer.json has been updated
Package "adz/yii2-featureditems" listed for update is not installed.
Ignoring.
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files

这是我的composer.json文件

{
    "repositories":[
        {
        "type": "git",
        "url": "https://github.com/adzayko/featured-items.git"
        }
    ],
    "require": {
        "adz/yii2-featureditems": "dev-master"
    }
}

0 个答案:

没有答案