I followed the documentation on https://getcomposer.org/doc/00-intro.md#globally to install composer globally on arch linux. When I do composer self-update, I g
composer self-update
Now, there is a package for composer in arch linux which works for me:
sudo pacman -S composer