# Best way to install private/paid plugins with Composer?

**URL:** https://discourse.roots.io/t/best-way-to-install-private-paid-plugins-with-composer/1045
**Category:** bedrock
**Tags:** composer
**Created:** 2014-01-10T12:50:26Z
**Posts:** 60
**Showing post:** 7 of 60

## Post 7 by @doug1as — 2014-05-30T20:06:07Z

I Needed a slightly different setup to get my repo to be installed via composer; hopefully this will help someone who may be stuck:

My project’s `"repositories"` key in the composer.json file has:

```
{
      "type": "vcs",
      "url": "https://bitbucket.org/accountname/reponame.git"
}
```

in `"require"` i have:

```
"accountname/reponame":"dev-master"
```

And in my repo composer.json file I needed to change `"dist"` into `"source"` or else it would not work:

```
{
    "name": "accountname/reponame",
    "version": "master",
    "source": {
        "url": "https://bitbucket.org/accountname/reponame.git",
        "type": "git"
    }
}
```

finally, while doing the update:

```
composer update -v --prefer-source
```

---

_[View the full topic](https://discourse.roots.io/t/best-way-to-install-private-paid-plugins-with-composer/1045)._
