kommandhub/demo-data-sw

Seeding high-quality demo data (categories, property groups, and products) into Shopware 6.

Maintainers

Package info

github.com/KommandHub/demo-data-sw

Type:shopware-platform-plugin

pkg:composer/kommandhub/demo-data-sw

Transparency log

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0-alpha 2026-07-04 21:03 UTC

This package is auto-updated.

Last update: 2026-07-04 21:06:16 UTC


README

Kommandhub Demo Data SW Banner

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)

  1. Clone this repository into your Shopware custom/plugins/ directory.
  2. Navigate to the plugin directory:
    cd custom/plugins/KommandhubDemoDataSW
  3. 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.