I've been putting some thought recently into how to integrate composer with Wordpress plugins. And yes, before anyone suggests it, Wordpress is a requirement. I've come up with a few ideas, but they all have pretty major drawbacks.
The first system would be to just include the composer packages with each plugin (aka run composer install locally and then zip the vendor folder with the plugin for easy uploading). The benefits are the ease of install, and simplicity. Issues arise when multiple plugins get installed with the same dependencies. Not only is it then pretty bloated, but if any there are dependency version differences between the plugins, the autoloaders would screw each other up, loading only one version.
Another option would be to continue to have composer packages with each plugin, but also have another plugin (we'll call it the framework plugin) which just has the packages which multiple plugins would use. The benefits to this would be no duplicated packages, all plugins would be kept working with the package versions shipped with the framework plugin; but there would be a lot of autoloaders at this point, never a good thing, and version management becomes very complex.
This of course would be so much easier if I could treat my plugins as composer packages, and have one vendor folder in the root directory, and install via the composer commandline; but one requirement of this system is plugins can be managed via ftp, no ssh.
The more I think about it, the less possible it seems, I know composer wasn't designed for this; but does anybody have any thoughts on how this might be achieved?