i start to explain how to update composer,
for installation start from step 3.
0.
if you already installed composer you should be able to get
composer version by running composer --version
. if installed go to
step 1.
1.
run composer self-update
if composer got updated then you are good to go
but if you get error saying this command is undefined,