Composer fork github project to submit PR

  composer-php, github, php, pull-request, version-control

I am trying to contribute a pull request for a public project on github, but I need to test it in my application. I am using github and composer on windows 10.

This is what I did

  1. Fork github repo tcg/voyager to mankowitz/voyager
  2. Edit my application’s composer.json so that it points to my fork instead of the official repo
  3. run composer install

This is what I get

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - The requested package mankowitz/voyager could not be found in any version, there may be a typo in the package name.

This is part of my composer.json

    "require": {
        ....
        "mankowitz/voyager": "1.*"
    "repositories": {
        "hooks": {
            "type": "composer",
            "url": "https://larapack.io"
        },
        "voyager": {
            "type": "vcs",
            "url": "[email protected]:mankowitz/voyager.git"
        }
    }

Source: Ask PHP

LEAVE A COMMENT