2
I have an example of JSON:
{
"name": "xxxxxx",
"description": "xxxxx",
"type": "beta",
"license": "MITS",
"authors":
[
{
"name": "Leonardo Vilarinho",
"email": "[email protected]"
}
],
"require":
{
"php": ">=5.5.12",
"twig/twig" : "*",
"respect/validation" : "*"
},
"require-dev" :
{
"phpunit/phpunit" : "*"
},
"config":
{
"vendor-dir": "libs"
}
}
I’ll probably have more libs
in my project, I want to know if there is how I disable and activate these libs
by PHP? If so, how can I do that? (I’m layman when the subject is composer
, so I couldn’t even try anything, the research didn’t get me anywhere).
Although they are downloaded in the project are not loaded in the autoload
of composer
.
I don’t quite get it, but I think what it is is to remove the time, remove the ones you don’t want, something like:
"require": 
 {
 "php": ">=5.5.12",
 "twig/twig" : "*"
 }
and use the commandphp composer.phar update
(or if it iscomposer update
), when you want to activate again just reset and"require": 
 {
 "php": ">=5.5.12",
 "twig/twig" : "*",
 "respect/validation" : "*"
 }
and use the commandphp composer.phar update
– Guilherme Nascimento
Let me give you an update on the question, the goal is to do in the PHP language itself, example, I have 3 dependencies, but I do not use one, so is there any way to cancel it in the autoload of Composer by the php language? Without removing and adding it via Poser
– Leonardo
I get it, but they don’t charge if you don’t use them, I’ll add an answer
– Guilherme Nascimento