- Edited
If you are or want to become a Flarum extension developer, you might want to read up on the several resources and tutorials related to Extension development:
- Building extensions documentation
- Extension development composer
- Mithril js documentation
- ES6 cheatsheet
- Laravel API Docs
- Clark Winkelmanns' developer streams on YouTube
- Flarum API Docs Archive (Community Run)
- Developers explaining their workflow for extension development
- Extension namespace tips
- Flarum stack explained
- Flarum Blank Extension Generator
Getting help
How to debug
- Enable debug (set to
true
in config.php). - Check that your extension is loaded in the page, for instance my
hyn/flarum-analytics
package can be found in the source when looking forSystem.get('hyn/analytics/main')
which refers to the namespacing defined in the Gulpfile.js of your forum or admin javascript. - If your extension is loaded. See if it actually runs, use
console.log('hello there');
to see whether the code is running. The message will be shown under the console in your browser.
Suggestions? Let us know.