i trying install private repository using composer
, have code bitbucket repository being cloned inside vendor/paladinstha/core
"repositories": [ "type": "package", "package": { "name": "paladinstha/core", "version": "dev-master", "source": { "url": "git@bitbucket.org:paladinstha/core.git", "type": "git", "reference": "origin/master" }, "autoload": { "psr-4": { "": "src/" } } } } ],
the folder structure is:
|-modules |-vendor |-paladinstha |-core
but intend clone inside modules
directory. have tried install in custom path using composer docs
i have set in composer.json
file.
"extra": { "installer-paths": { "modules/core": ["paladinstha/core"] } },
it being cloned vendor
directory. doing wrong? 1 put light on it.
you cannot clone inside directory. composer meant download , manage packages depends 1 on others. downloaded vendor flder, if private repositories. then, using namespaces can use them in project.
anyway can specify path, yes, ever vendor
directory, not outside of it.
only if developing package specific supported package type can specify directory outside vendor
folder.
here there the list of supported packages.
as stated in documentation:
simply require composer/installers , set appropriate type. common if package intended specific framework such cakephp, drupal or wordpress.
Comments
Post a Comment