title: composer inside other composer project
body: <p>I have a composer project for which I need to create a custom plugin that will also use composer. Both the main project and the plugin use the same dependencies but in different versions. How should I resolve these dependencies between each other? So that the plugin uses a dependency from its composer vendor and not from the vendor of the main project?</p>
  <p>I found for example this solution: <a href="https://github.com/TypistTech/imposter-plugin" rel="nofollow noreferrer">https://github.com/TypistTech/imposter-plugin</a> but it doesn't seem very elegant to me.</p>