vendredi 13 novembre 2020

Installing Laravel without downloading by composer global


I'm trying to install a Laravel project.

So I run this command:composer global require "laravel/installer". After it's done, I would run laravel new project_name.

So the question is, I don't want to download Laravel dependencies every time I run composer command. I want it to copy downloaded laravel from the global directory of composer to my project_dir.

So, how to do that simply without downloading ? as well as for other packages.


Here's is the output of composer:

username@PCNAME:~$ composer global require "laravel/installer"
Changed current directory to /home/alireza/.config/composer
Warning from https://repo.packagist.org: You are using an outdated version of Composer. Composer 2.0 is now available and you should upgrade. See https://getcomposer.org/2
Using version ^4.1 for laravel/installer
./composer.json has been created
Loading composer repositories with package information
Warning from https://repo.packagist.org: You are using an outdated version of Composer. Composer 2.0 is now available and you should upgrade. See https://getcomposer.org/2
Updating dependencies (including require-dev)
Package operations: 12 installs, 0 updates, 0 removals
  - Installing symfony/polyfill-php80 (v1.20.0): Downloading (100%)         
  - Installing symfony/process (v5.1.8): Downloading (100%)         
  - Installing symfony/polyfill-mbstring (v1.20.0):Downloading (100%)         )
  - Installing symfony/polyfill-intl-normalizer (v1.20.0): Downloading (connectDownloading (100%)         
  - Installing symfony/polyfill-intl-grapheme (v1.20.0): Downloading (connectinDownloading (100%)         
  - Installing symfony/polyfill-ctype (v1.20.0): Downloading (100%)         
  - Installing symfony/string (v5.1.8): Downloading (100%)         
  - Installing psr/container (1.0.0): Downloading (100%)         
  - Installing symfony/service-contracts (v2.2.0): Downloading (100%)         
  - Installing symfony/polyfill-php73 (v1.20.0): Downloading (100%)         
  - Installing symfony/console (v5.1.8): Downloading (100%)         
  - Installing laravel/installer (v4.1.0): Downloading (100%)         
symfony/polyfill-intl-normalizer suggests installing ext-intl (For best performance)
symfony/polyfill-intl-grapheme suggests installing ext-intl (For best performance)
symfony/service-contracts suggests installing symfony/service-implementation
symfony/console suggests installing symfony/event-dispatcher
symfony/console suggests installing symfony/lock
symfony/console suggests installing psr/log (For using the console logger)
Writing lock file
Generating autoload files
10 packages you are using are looking for funding.
Use the `composer fund` command to find out more!



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/36u91K8
via IFTTT

Aucun commentaire:

Enregistrer un commentaire