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:

[email protected]:~$ 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

Related Posts

Codeigniter : Parse error: syntax error, unexpected ‘const’ (T_CONST), expecting variable (T_VARIABLE) in Laravel project

I’m getting following error: **Parse error: syntax error, unexpected ‘const’ (T_CONST), expecting variable (T_VARIABLE)** Note : It’s working in local but facing issue in production server. private…

Firebase receive notification while tab is active or on focus

What i want is to be able to perform an action when a user receives a notification while the browser is open and tab is active or…

Laravel’s alias loader does not find class

We have a legacy project that we cannot update and we need to make some changes in symfony’s Response.php in vendor. We have solved this by copying…

Laravel 5 – generic document management

I have a system where you can create different types of unique documents. For instance, one document is called Project Identified and this expects certain inputs. Originally,…

Laravel Nova limit the results in indexQuery

I ran intro a situation where I need to limit the results of a resource to only 3 results. To be more specific, based on the logged…

Auditoria en laravel 5.8 [closed]

Cómo puedo automatizar el registro de actividades de un usuario en laravel? Si un usuario ingresa a un app de laravel, debo guardar toda su actividas, a…

Leave a Reply

Your email address will not be published.