What is difference between composer.lock and composer.json?
{
"id": "1Noa4GN0JJKNJl85qyhnHnH5",
"question": "What is difference between composer.lock and composer.json?",
"answers": [
"Composer.lock is a part of symfony framework, and composer.json is a part of composer package",
"Composer.json is human-writable and contains of package versions. Composer.lock is autogenerated and contains exact versions",
"Composer.lock is deprecated version of composer.json"
],
"correctAnswers": [
"Composer.json is human-writable and contains of package versions. Composer.lock is autogenerated and contains exact versions"
],
"incorrectAnswers": [
"Composer.lock is a part of symfony framework, and composer.json is a part of composer package",
"Composer.lock is deprecated version of composer.json"
],
"allowCustomAnswer": false,
"canEdit": false,
"allowFileAnswer": false,
"multi": false,
"explanation": "",
"canLike": false,
"likes": 0,
"allAnswers": [
{
"text": "Composer.lock is deprecated version of composer.json",
"correct": false,
"selected": false
},
{
"text": "Composer.json is human-writable and contains of package versions. Composer.lock is autogenerated and contains exact versions",
"correct": true,
"selected": false
},
{
"text": "Composer.lock is a part of symfony framework, and composer.json is a part of composer package",
"correct": false,
"selected": false
}
]
}