downgrade php version with composer code example Example: composer downgrade to version 1 sudo composer self-update --1