在Composer中需要分叉版本

时间:2017-04-24 15:13:35

标签: git github composer-php

我已经在无数其他地方看过这个,但由于某种原因,这似乎并不适合我。它永远不会从分叉回购中拉出版本?以下是我要提取的内容:https://github.com/Jafo232/laravel-medialibrary/tree/v3

这是我的作曲家档案:

{
    "name": "laravel/laravel",
    "description": "The Laravel Framework.",
    "keywords": ["framework", "laravel"],
    "license": "MIT",
    "type": "project",
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/Jafo232/laravel-medialibrary"
        }
    ],
    "require": {
        "php": ">=5.6.4",
        "barryvdh/laravel-debugbar": "^2.2",
        "ixudra/curl": "^6.10",
        "jenssegers/model": "^1.1",
        "laracasts/flash": "^2.0",
        "laravel/framework": "5.4.*",
        "laravel/tinker": "~1.0",
        "spatie/laravel-medialibrary": "v3"
    },
    "require-dev": {
        "fzaninotto/faker": "~1.4",
        "mockery/mockery": "0.9.*",
        "laravelcollective/html": "~5.0",
        "phpunit/phpunit": "~5.7"
    },
    "autoload": {
        "classmap": [
            "database"
        ],
        "psr-4": {
            "App\\": "app/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\\": "tests/"
        }
    },
    "scripts": {
        "post-root-package-install": [
            "php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "php artisan key:generate"
        ],
        "post-install-cmd": [
            "Illuminate\\Foundation\\ComposerScripts::postInstall",
            "php artisan optimize"
        ],
        "post-update-cmd": [
            "Illuminate\\Foundation\\ComposerScripts::postUpdate",
            "php artisan optimize"
        ]
    },
    "config": {

        "sort-packages": true
    }
}

0 个答案:

没有答案