datlechin Are you serious!? OMG.
First of all, thank you so much. I might cry because I spent all day yesterday on this. If it wasn't for you, I might never learn about these little composer.json issues.
But second, why did the composer gods make things so sensitive? Composer/PHP devs can't make it smart enough to not care about that?
You win my favorite person of the year award.
For anyone else, I spent a day trying to add something small to my extension. It wasn't working because of my composer.json file. I needed to fix a namespace, and then require fof/upload and flarum/bbcode.
This was the main issue (in case it helps anyone else down the road):
WRONG:
"require": {
"flarum/core": "^0.1.0-beta.16 || ^1.0"
},
"autoload": {
"psr-4": {
"ZerosOnesFun\\TypoHere\\": "src/"
}
CORRECT:
"require": {
"flarum/core": "^0.1.0-beta.16 || ^1.0",
"fof/upload": "*",
"flarum/bbcode": "*"
},
"autoload": {
"psr-4": {
"ZerosOnesFun\\EssentialAudio\\": "src/"
}