composer/composer — Issue #412: make it easier to test out a composer.json before submitting it to a 3rd party
Author: lsmith77
Created: 2012-03-08 22:41:14+00:00
State: open

my key concern is that when I test how a composer.json would behave before submitting it to the 3rd party, that i only need to add a few lines to my composer.json but not have to mess with the dependencies or any other part of my composer.json.

So this example is about testing a composer.json of FOSFacebookBundle before a composer.json is available in the official Facebook php-sdk. The current version of the php-sdk is 3.1.1:

I envision that all I need to do is:
1) fork the php-sdk
2) add the composer.json that I later intend to submit as a PR to a branch
3) add a repositories section to my composer.json of FOSFacebook to let composer know where it can find the composer.json file and what version to assume this branch to be tagged as

```
"repositories":[
{
"type": "vcs",
"url": "https://github.com/FriendsOfSymfony/php-sdk",
"branch": "composer.json",
"version": "3.1.2"
}
],
```