Is it possible to install a composer package without updating the composer.json -


i want install composer package, want in environment developing purposes, don't want other developers install or see have it.

what equivalent of npm install pack/age without --save in composer?

i don't think there exact composer equivalent npm install without --save.

one way similar result use composer's global command install package globally user:

composer global require some/package 

this npm install -g if you've configured npm put such modules in home directory instead of in shared location. binaries available in global vendor binaries directory, on machine ~/.config/composer/vendor/bin/.

another option use composer require in project directory , revert changes composer.json , composer.lock whatever version control system use. downside of newly installed packages won't included in autoloader next time gets generated.


Comments

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -