Some times it is stuck because it is trying to use HTTP instead of https so just run this composer config --global repo.packagist composer https://packagist.org
Helper for developer
Some times it is stuck because it is trying to use HTTP instead of https so just run this composer config --global repo.packagist composer https://packagist.org