I just saw @Antoine 's Money extension and I think I've seen other money/karma/points extensions as well on the forum.
I'm wondering how we should do if we want to build on top of another extension. For example, if I want to create an extension that adds a paid feature using money from that extension ?
The parent extension should obviously provide API methods to interact with it. It would then be possible to use composer dependencies to require the parent extension.
Is this supposed to work that way ? Or should we not try such things before stable version ?
I'm concerned of thinks that could go wrong if the parent extension is installed with composer but not enabled in flarum (or not enabled in correct order). Critical migrations or events might not be set up. But the PHP code of the parent extension will be available through autoload even if it is disabled in Flarum I believe ?