I'm currently building a WordPress plugin in which I need some functionality that already exists inside of another plugin. I was hoping to find a way to leverage that third-party code in such a way that if it received updates, I could easily update my own plugin to include them. Note that I don't want to have the plugin be a dependency that users are required to install before they can install and use my plugin. I'd prefer to shield users from this.
My question is what is the best way to accomplish this? Originally I had just ported the code I needed into my own plugin, with credit to the other plugin's author. This is not ideal as including updates would have to be a manual process.
Is it possible to utilize Composer for something like this? Is there some other solution I haven't thought of? I guess the fact that the code exists inside of a plugin, rather than a library, is what is throwing me off.
Thx.