The composer is very slow when loading Laravel

Could you help me? I want to install Laravel via composer create-project laravel/laravel in the cms directory, but Composer loads it very slowly. Can you help me with this, how to increase it?

Here is my terminal:

 saidalo@Saidalo-Yodgoroff :/var/www/html$ composer create-project laravel/laravel cms "5.1.*" Installing laravel/laravel (v5.1.33) - Installing laravel/laravel (v5.1.33) Downloading: 100% Created project in cms > php -r "copy('.env.example', '.env');" Loading composer repositories with package information Updating dependencies (including require-dev) - Installing vlucas/phpdotenv (v1.1.1) Downloading: 100% - Installing symfony/var-dumper (v2.7.11) Downloading: 100% - Installing symfony/translation (v2.7.11) Downloading: Connecting... 

I do not know what to do!

+5
source share
3 answers

There is a package to speed up your composer. It may be useful.

  • Disable Xdebug Disconnect it and be happy.

  • Using Prestissimo is a global Composer plugin that installs dependencies in parallel. This is insanely fast. It is worth noting that Prestissimo requires cURL, which may not work for some firewalls or proxies. I did not encounter any problems at all.

Source: composer accelerated by laravel

0
source

Try

 composer config --global repo.packagist composer https://packagist.org 

to force https

0
source

Try the hirak / prestissimo Composer plugin. This will drastically reduce the dependency installation process of any major project.

0
source

Source: https://habr.com/ru/post/1247840/


All Articles