Tutorial · Developers
Build your first plugin
Melis is a developer-first platform. In a few steps, create a front plugin you can drag, drop and configure right inside the back office — no framework gymnastics required.
What you'll build
A drag-and-drop front plugin, end to end
A reusable component with its own controller, view and configuration form — the same pattern Melis uses for everything from carousels to news lists.
Declare the plugin
Register your plugin in the module config and create its controller class extending the Melis plugin base — that's the entry point Melis calls to render it.
MelisTemplatingPlugin {
function front() {
// return view model
}
}
Add the template
Create a .phtml view, map it in the config, and output clean markup. It inherits your theme's styles automatically.
<?= $this->title ?>
</div>
Make it editable
Declare a properties form so content teams can configure the plugin from the back office — no code change needed to tweak it.
Drag, drop, done
Drop your plugin into any page zone, set its options, publish. The same component is now reusable across your whole site.
Start building on Melis
Open source and developer-first — install Melis Platform and ship your first plugin today. Need a hand? Talk to our team.