Plugins
Extend Phlix with a versioned plugin contract.
Plugin Model
Phlix plugins implement a clear contract. Drop a plugin in, the loader picks it up.
How it works
Implement LifecycleInterface, ship a manifest, drop it in the plugins directory.
Implement Interface
Create a class that implements LifecycleInterface
Write Manifest
Define your plugin metadata in manifest.json
Drop in Directory
Place your plugin in the plugins folder
Auto-loaded
The loader discovers and activates your plugin
Example Plugin
See phlix-plugin-example for the smallest working starter.
The example plugin demonstrates a metadata provider that integrates with TMDB. It shows the complete plugin structure including manifest, service provider, and lifecycle hooks.
Manifest Contract
Every plugin requires a manifest.json with these fields.
Build your first plugin
Clone the example and start building.