Extending
Herbie can be extended at several points in the application lifecycle.
You can add functionality in different ways, from PHP files in site/extend to plugins published as Composer packages.
- What can be extended – the available extension points and ways to add them.
- Files in site/extend – add PHP files in
site/extend. - Register in index.php – register extensions in the
index.phpbootstrap file. - Plugin class – bundle related extensions in a plugin class.
- Composer package – publish a plugin as a Composer package.
- Example plugins – six small plugins in ascending order of complexity.