Thursday, May 31, 2018
Part of the power of Packages is its plugin architecture. This system allows you to hook into different areas of Packages to enable new functionality.
Tip: It is recommended that you fork the Packages repository before modification. This will allow you to continue to use git while keeping access to upstream changes.
The plugin system has three main components:
Plugin
class which wires up services in the service container.Notice: This section is a work-in-progress.
Create a Plugin
class that implements Terramar\Packages\Plugin\PluginInterface
.
Create any event subscribers, register them in your Plugin
's configure method.
Tip: Check the Event Reference for more details on which events you can listen to.
Create any action handlers, register them in your Plugin
's configure method.
Tip: Check the Action Reference for more details on which actions you can handle.
Terramar Labs