L
L
Leopandro2015-12-07 01:08:00
Yii
Leopandro, 2015-12-07 01:08:00

How can I extend composer.json to download my package?

Here is my composer.json

{
    "name": "yiisoft/yii2-app-basic",
    "description": "Yii 2 Basic Project Template",
    "keywords": ["yii2", "framework", "basic", "project template"],
    "homepage": "http://www.yiiframework.com/",
    "type": "project",
    "license": "BSD-3-Clause",
    "support": {
        "issues": "https://github.com/yiisoft/yii2/issues?state=open",
        "forum": "http://www.yiiframework.com/forum/",
        "wiki": "http://www.yiiframework.com/wiki/",
        "irc": "irc://irc.freenode.net/yii",
        "source": "https://github.com/yiisoft/yii2"
    },
    "minimum-stability": "dev",
    "prefer-stable" : true,
    "require": {
        "php": ">=5.4.0",
        "yiisoft/yii2": ">=2.0.5",
        "yiisoft/yii2-bootstrap": "*",
        "yiisoft/yii2-swiftmailer": "*",
        "dektrium/yii2-user": "0.9.*@dev",
        "execut/yii2-widget-bootstraptreeview": "dev-master",
        "2amigos/yii2-file-upload-widget": "~1.0",
        "kartik-v/yii2-widget-select2": "@dev",
        "paulzi/yii2-adjacency-list": "^1.0"
    },
    "require-dev": {
        "yiisoft/yii2-codeception": "*",
        "yiisoft/yii2-debug": "*",
        "yiisoft/yii2-gii": "*",
        "yiisoft/yii2-faker": "*"
    },
    "config": {
        "process-timeout": 1800
    },
    "scripts": {
        "post-create-project-cmd": [
            "yii\\composer\\Installer::postCreateProject"
        ]
    },
    "extra": {
        "yii\\composer\\Installer::postCreateProject": {
            "setPermission": [
                {
                    "runtime": "0777",
                    "web/assets": "0777",
                    "yii": "0755"
                }
            ],
            "generateCookieValidationKey": [
                "config/web.php"
            ]
        },
        "asset-installer-paths": {
            "npm-asset-library": "vendor/npm",
            "bower-asset-library": "vendor/bower"
        }
    }
}

I want to replace "dektrium/yii2-user": "0.9.*@dev", with my https://github.com/Leopandro/dektrium. No matter how I tried, it's still not my package that is downloaded.
Tried like this:
"repositories": [
        {
            "type": "git",
            "url": "https://github.com/Leopandro/dektrium"
        }
    ],
"require": {
        "php": ">=5.4.0",
        "yiisoft/yii2": ">=2.0.5",
        "yiisoft/yii2-bootstrap": "*",
        "yiisoft/yii2-swiftmailer": "*",
        "dektrium/yii2-user": "*",
        "execut/yii2-widget-bootstraptreeview": "dev-master",
        "2amigos/yii2-file-upload-widget": "~1.0",
        "kartik-v/yii2-widget-select2": "@dev",
        "paulzi/yii2-adjacency-list": "^1.0"
    },

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
sunrails, 2015-12-07
@sunrails

Are you reading the documentation ?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question