L
L
lnked2015-10-24 18:45:04
Composer
lnked, 2015-10-24 18:45:04

Can Composer download not the entire repository, but only a separate folder?

Let's say smarty-php/smarty git repository can composer download only libs/
current composer.json folder like this

{
    "config": {
        "vendor-dir": "vendor/libs"
    },

    "require": {
        "smarty/smarty": "^3.1",
        "fenom/fenom": "~2",
        "twig/twig": "^1.22",
        "imagine/imagine": "^0.6.3"
    }
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
index0h, 2015-10-24
@lnked

can not. Unless, after installation, you can write a hook that deletes unnecessary files - but this is a very bad idea.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question