Best way to install private/paid plugins with Composer?

Got to working!

For reference, I simply removed these lines from the repo’s composer.json

"source": {
    "url": "git@bitbucket.org:gabrielgiordan/my-plugin.git",
    "type": "git"
}

And keep it like this.

{
    "name": "gabrielgiordan/my-plugin",
    "description": "My Plugin",
    "type": "wordpress-plugin",
    "license": "proprietary",
    "authors": [
        {
            "name": "Gabriel Giordano"
        }
    ],
    "require": {
		"composer/installers": "^1.0.6"
	}
}

Deploy worked fine!

3 Likes