For the record only, since I did not find a solution for Arch Linux : if you use the composer from an additional repository (extra / php-composer), this is actually not enough to enable the mcrypt extension in /etc/php/php.ini, since the global composer script uses its own ini file (/usr/share/php-composer/php.ini).
To fix mcrypt error you can:
- Enable the mcrypt extension globally and start the composer using
php /usr/bin/composer . - Add the mcrypt extension to / usr / share / php -composer / php.ini and don't let pacman overwrite your changes by adding
NoUpgrade = usr/share/php-composer/php.ini to /etc/pacman/pacman.conf.
source share