This is not a laravel bug. This composer eats so much. The problem is standard on shared servers and dead VPS.
There is only one solution - install it locally, transfer it to the server along with composer.lockit, and execute it there composer install.