Add exception for those urls in Avast :
https://repo.packagist.org/\*
https://api.github.com/\*
https://getcomposer.org/\*
https://packagist.org/\*
https://raw.githubusercontent.com/\*
https://codeload.github.com/\*