Plugin Base Guide
This guide outlines the typical development flow when creating a Shopware plugin, using the recommended static plugin approach. Core concepts apply to all plugin types. Not every plugin requires all steps.
Typical plugin development flow
- Create the plugin structure
- Install and activate the plugin
- Understand the plugin lifecycle
- Add plugin configuration
- Register services and use dependency injection
- Listen to events or decorate services
- Extend the platform (either or both): Storefront, Administration
- Add database migrations (if required)
- Add scheduled tasks or CLI commands (if required)
- Add dependencies: npm, Composer (if required)
- Write tests and configure CI
- Add diagnostics
Upgrade readiness
Design plugins so that:
- Migrations are idempotent
- Lifecycle logic is minimal and predictable
- Domain logic is encapsulated behind services
Upgrades are easier when the plugin surface area is small and well-structured.