kommandhub / demo-data-sw
Seeding high-quality demo data (categories, property groups, and products) into Shopware 6.
Package info
github.com/KommandHub/demo-data-sw
Type:shopware-platform-plugin
pkg:composer/kommandhub/demo-data-sw
Requires
- php: >=8.2
- shopware/core: ~6.6.0 || ~6.7.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.94
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^11.5
- rregeer/phpunit-coverage-check: ^0.3.1
- shopware/dev-tools: ^1.5
This package is auto-updated.
Last update: 2026-07-04 21:06:16 UTC
README
Kommandhub Demo Data SW
A Shopware 6 plugin for seeding high-quality demo data (categories, property groups, and products) into your store.
Features
- Interactive Seeding: Guides you through selecting parent categories and CMS pages.
- Bulk Data Generation: Efficiently creates categories, property groups, and products.
- Deterministic IDs: Uses UUIDs derived from names to prevent duplicate creation on multiple runs.
- Docker-Ready: Comes with a pre-configured development environment.
- Modern Standards: Full support for PHPUnit, PHPStan, and PHP-CS-Fixer.
Getting Started
Prerequisites
- Docker and Docker Compose
- Make
Installation
Via Composer (Recommended)
Run the following command in your Shopware root directory:
composer require kommandhub/demo-data-sw bin/console plugin:refresh bin/console plugin:install --activate KommandhubDemoDataSW
Manual Installation (Development)
- Clone this repository into your Shopware
custom/plugins/directory. - Navigate to the plugin directory:
cd custom/plugins/KommandhubDemoDataSW - Start the development environment:
make up
Usage
To seed the demo data, run the following command inside the container:
bin/console kommandhub:seed-demo-data
To create footer navigation categories separately, run:
bin/console kommandhub:add-footer-categories
Image Selection
When seeding products, you will be prompted to select images from the media manager. To ensure the selection process is manageable even with large media libraries, the plugin only lists images whose filenames start with demo- (e.g., demo-product-1.png).
Important
Ensure your demo images are uploaded to the Shopware Media Manager and prefixed with demo- before running the command.
[!INFO] This command should be run once to populate your store with initial demo data. While it uses deterministic UUIDs to avoid duplicates, running it multiple times might overwrite custom changes to the generated entities.
Development
Running Tests
make test
Static Analysis
make analyse
Coding Standards
make cs make cs-fix
License
This project is licensed under the MIT License - see the LICENSE file for details.
