Composer through ssh in a Github repo

Seems pretty silly, but I haven't found the answer until I started to play with composer and the repositories route, in the end I could get a github repository through ssh with this, pretty convenient.

"repositories": [
        {
            "type": "vcs",
            "url": "ssh:[email protected]:22/myrepo/MyBundle.git"
        }
    ],

If you don't put the port, composer complains and fails.

Javier Aguirre

Read more posts by this author.

comments powered by Disqus