If a particular component of an application is decoupled enough from the parent that it can be used by other applications, how would I go about making that component into it's own composer package yet still maintain it in the scope of the parent application?
As an example, I'd like to achieve what Laravel did with it's database component: https://github.com/illuminate/database
Since it says READ ONLY, I'm under the impression that that "subtree" is still maintained from the parent Laravel/framework git repository yet retain the characteristics of a regular git repo in order for it to be distributed as a Composer package.
Is my impression accurate? How do I achieve this sorcery?
Thanks in advance.