1

I have framework wich uses plugins as subdirectories in plugin/ directory. Plugins are git submodules and it works just fine. But some plugins require 3rd party libraries and I want to use Composer ti install them. Also there are dependencies between plugins which could be handled by Composer too.

I tried to use composer, but it will install everything into vendor/ directory, which is wrong because plugins must go into plugin/ directory. There is also core of the framework in core/ and application specific files in app/ directory.

What is the best way to use Composer in this scenario?

Josef Kufner
  • 2,851
  • 22
  • 28

1 Answers1

-1

There should be a way for Composer to decide which package is a plugin and should be placed in the plugins directory. In composer, there is a special type setting which you should use in that case.

Then you can use a custom installer to install the special plugin types in the plugin directory.

Wouter J
  • 41,455
  • 15
  • 107
  • 112