Reputation: 31
I am trying composer from packagist.org and a git repository for managing versions of my library. When I required my library, composer cloned the repository to vendor folder, but I need only download files. Here's my composer.json:
{
"name": "vend/xxxxxx",
"description": "SDK for quick creation of client integration",
"keywords": [
"xxxxxxx",
"sdk"
],
"homepage": "xxxxxxxxxx",
"type": "library",
"license": "MIT",
"autoload": {
"psr-0": {
"DDelivery": "application/classes"
}
},
"extra": {
"branch-alias": {
"dev-master": "2.0.*@dev"
}
}
}
and composer.json 2:
{
"require": {
"vend/xxxxxx": "2.0.*@dev"
}
}
What am I missing from my composer.json? How can I manage my versions through git and packagist.org? How do other vendors manage their frameworks?
Upvotes: 0
Views: 1422
Reputation: 41954
By default, stable versions are downloaded and unstable versions are cloned. You can customize this behaviour with the --prefer-dist
or --prefer-source
flags of the update
and install
command.
Upvotes: 2