I donโt understand how to use Composer and Bitbucket correctly to distribute my libraries, maybe because I am new to both Composer and Bitbucket.
My problem: I have two repositories on Bitbucket, the first is a simple utility utility (Utility), and the second is the main project (MainProject). Both have one branch leading.
I want to use Utility in MainProject, so I wrote two composer.json.
Mainproject composer.json:
{
"require": {
"vendor/utility": "*"
},
"repositories": [
{
"type": "vcs",
"url": "https://MyUsername@bitbucket.org/MyUsername/utility.git"
}
]
}
The composer.json utility:
{
"name": "vendor/utility",
"autoload": {
"psr-4": {
"Vendor\\": "src/"
}
}
}
, , " " MainProject, . MainProject Utility, , phpunit.xml.
: https://www.reddit.com/r/PHP/comments/2jzp6k/i_dont_need_your_tests_in_my_production/, Sourcetree, ? ? , .
, , ?
.gitattribute dist? , , , , .
?