Toolbelt by flagrow
This is not an extension!
Toolbelt is a package meant for extension developers. It offers re-usable components and helper classes for both the back- and frontend of Flarum extensions.
Add to your extension composer.json:
"require": {
// ..
"flagrow/toolbelt": "^0.1.0"
}
Update your own package from the Flarum installation directory to install the new dependency;
composer update <vendor>/<package>
Now in your bootstrap.php:
return function (Flarum\Foundation\Application $app) {
// Registers toolbelt locale, js and php namespace.
$app->register(Flagrow\Toolbelt\Providers\ToolbeltProvider::class);
}
You might have other arguments in that function, just add the Application in addition.