[Composer\Downloader\TransportException] Content-Length mismatch, xxx received bytes out of the expected
Помогает смена дефолтного репозитория:
composer config -g repo.packagist composer https://packagist.phpcomposer.com
composer config -g repo.packagist composer https://packagist.org