PHPackages                             m-a-x-s-e-e-l-i-g/shopware-6-cart-seeder - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. m-a-x-s-e-e-l-i-g/shopware-6-cart-seeder

ActiveShopware-platform-plugin

m-a-x-s-e-e-l-i-g/shopware-6-cart-seeder
========================================

A Shopware 6 plugin for seeding shopping carts and customers for development purposes.

1.0.1(8mo ago)21[1 issues](https://github.com/m-a-x-s-e-e-l-i-g/shopware-6-cart-seeder/issues)MITPHPPHP ~8.3.0

Since Jul 29Pushed 8mo agoCompare

[ Source](https://github.com/m-a-x-s-e-e-l-i-g/shopware-6-cart-seeder)[ Packagist](https://packagist.org/packages/m-a-x-s-e-e-l-i-g/shopware-6-cart-seeder)[ RSS](/packages/m-a-x-s-e-e-l-i-g-shopware-6-cart-seeder/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (4)Used By (0)

🛒 Cart Seeder Plugin for Shopware 6
===================================

[](#-cart-seeder-plugin-for-shopware-6)

A powerful development tool for generating realistic fake customers and shopping carts in Shopware 6.

[![Shopware 6](https://camo.githubusercontent.com/4babbc78457c85207affb57da7857002e05d77a64e1df84d54573eb951dc4ca5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53686f70776172652d253545362e362d626c75653f6c6f676f3d73686f7077617265)](https://camo.githubusercontent.com/4babbc78457c85207affb57da7857002e05d77a64e1df84d54573eb951dc4ca5/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f53686f70776172652d253545362e362d626c75653f6c6f676f3d73686f7077617265)[![Plugin Version](https://camo.githubusercontent.com/216061b12afc1c31d8c2489ecc10efaf7b0fbd9b533b41bde265ce60f11a765c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f56657273696f6e2d312e302e312d677265656e)](https://camo.githubusercontent.com/216061b12afc1c31d8c2489ecc10efaf7b0fbd9b533b41bde265ce60f11a765c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f56657273696f6e2d312e302e312d677265656e)[![License](https://camo.githubusercontent.com/d6bc2b26794002c24d023acaab01b6dbb953c57ab9cb80ba5b8aa2f2bd5de99a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c7565)](https://camo.githubusercontent.com/d6bc2b26794002c24d023acaab01b6dbb953c57ab9cb80ba5b8aa2f2bd5de99a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c7565)[![PHP](https://camo.githubusercontent.com/4746f6afba851945e8e0581bbab1001a679ac430f9dbf5b2c9558ab1c10cba3c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e332d707572706c65)](https://camo.githubusercontent.com/4746f6afba851945e8e0581bbab1001a679ac430f9dbf5b2c9558ab1c10cba3c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e332d707572706c65)

---

[![image](https://private-user-images.githubusercontent.com/7907436/485693101-4c8fe17e-60f7-4b50-a694-1327d095719a.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzM5NjkyMDcsIm5iZiI6MTc3Mzk2ODkwNywicGF0aCI6Ii83OTA3NDM2LzQ4NTY5MzEwMS00YzhmZTE3ZS02MGY3LTRiNTAtYTY5NC0xMzI3ZDA5NTcxOWEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MDMyMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjAzMjBUMDEwODI3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NjFiOWEyNzY1YzU3NDliZTQ3MDEzZjQyMDMxMjNjM2MwZmEzMjY1OGUyNGIxN2M4ZmM1ZWNmY2YzYzVjMTgzMiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.xqtYtRAOGmqZRVNGsRAdwxg9kQScUKzqOYQ5k0LXenA)](https://private-user-images.githubusercontent.com/7907436/485693101-4c8fe17e-60f7-4b50-a694-1327d095719a.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzM5NjkyMDcsIm5iZiI6MTc3Mzk2ODkwNywicGF0aCI6Ii83OTA3NDM2LzQ4NTY5MzEwMS00YzhmZTE3ZS02MGY3LTRiNTAtYTY5NC0xMzI3ZDA5NTcxOWEucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI2MDMyMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNjAzMjBUMDEwODI3WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NjFiOWEyNzY1YzU3NDliZTQ3MDEzZjQyMDMxMjNjM2MwZmEzMjY1OGUyNGIxN2M4ZmM1ZWNmY2YzYzVjMTgzMiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.xqtYtRAOGmqZRVNGsRAdwxg9kQScUKzqOYQ5k0LXenA)🎯 Purpose
---------

[](#-purpose)

This plugin is designed **exclusively for development and testing environments**. It provides developers with:

- 🧑‍🤝‍🧑 **Realistic Customer Data**: Generate customers with proper addresses, payment methods, and profiles
- 🛍️ **Populated Shopping Carts**: Create carts with random products and configurable item counts
- ⏰ **Aged Cart Simulation**: Make carts appear older for testing abandoned cart scenarios
- 🧹 **Easy Cleanup**: All generated data is marked for simple identification and removal
- 📊 **Batch Processing**: Generate hundreds or thousands of records with progress tracking

---

⚠️ Important Warning
--------------------

[](#️-important-warning)

**🚨 FOR DEVELOPMENT USE ONLY - NEVER USE IN PRODUCTION! 🚨**

This plugin creates fake customer data and should only be used in development/testing environments.

---

🚀 Installation
--------------

[](#-installation)

### Method 1: Composer (Recommended)

[](#method-1-composer-recommended)

Install the plugin directly from Packagist:

```
# Navigate to your Shopware root directory
cd /path/to/your/shopware

# Install the plugin via Composer
composer require m-a-x-s-e-e-l-i-g/shopware-6-cart-seeder
```

### Method 2: Manual Installation

[](#method-2-manual-installation)

Clone this repository into your Shopware installation's `custom/plugins` directory:

```
cd /path/to/your/shopware/custom/plugins
git clone  shopware-6-cart-seeder
```

Or download and extract the plugin into `custom/plugins/shopware-6-cart-seeder`.

### Install Dependencies &amp; Activate

[](#install-dependencies--activate)

```
# Navigate to your Shopware root directory
cd /path/to/your/shopware

# Install Faker library (required dependency - only needed for manual installation)
# Note: When installing via Composer, dependencies are handled automatically
composer require fakerphp/faker

# Refresh plugin list
bin/console plugin:refresh

# Install and activate the plugin
bin/console plugin:install --activate MaxSeeligCartSeeder

# Clear cache
bin/console cache:clear
```

---

📋 Usage
-------

[](#-usage)

### Basic Commands

[](#basic-commands)

```
# Generate default amounts (50 customers, 100 carts)
bin/console cart-seeder:seed

# Generate custom amounts
bin/console cart-seeder:seed --customers=100 --carts=200

# Control cart contents
bin/console cart-seeder:seed --min-items=2 --max-items=10

# Clean existing test data first
bin/console cart-seeder:seed --clean

# Complete example with all options
bin/console cart-seeder:seed \
  --customers=500 \
  --carts=1000 \
  --min-items=1 \
  --max-items=8 \
  --clean
```

### Command Options

[](#command-options)

OptionShortDefaultDescription`--customers``-c``50`Number of fake customers to create`--carts``100`Number of fake carts to create`--min-items``1`Minimum items per cart`--max-items``5`Maximum items per cart`--clean``false`Remove existing seeded data before generating new data---

🔧 Features
----------

[](#-features)

### 👥 Realistic Customer Generation

[](#-realistic-customer-generation)

- **Names &amp; Demographics**: Uses Faker to generate realistic first/last names
- **Contact Information**: Unique email addresses and phone numbers
- **Addresses**: Complete shipping/billing addresses with real-looking street names, cities, and postal codes
- **Account Setup**: Proper customer groups, payment methods, and salutations
- **Identification**: All customers get `SEED-` prefixed customer numbers for easy cleanup

### 🛍️ Smart Cart Creation

[](#️-smart-cart-creation)

- **Product Selection**: Randomly selects products from your existing catalog
- **Configurable Contents**: Control minimum and maximum items per cart
- **Realistic Quantities**: Random quantities (1-3) per line item
- **Aged Carts**: Carts are backdated randomly (1-7 days) to simulate real usage patterns
- **Customer Assignment**: Each cart is linked to a generated customer

### 📊 Developer-Friendly Features

[](#-developer-friendly-features)

- **Progress Tracking**: Visual progress bars for large datasets
- **Error Handling**: Graceful error handling with detailed error messages
- **Memory Efficient**: Processes data in batches to avoid memory issues
- **Safe Cleanup**: Easy identification and removal of test data

---

🧹 Data Management
-----------------

[](#-data-management)

### Cleanup Generated Data

[](#cleanup-generated-data)

```
# Remove all seeded customers and carts
bin/console cart-seeder:seed --clean --customers=0 --carts=0

# Or generate fresh data (cleans old data first)
bin/console cart-seeder:seed --clean --customers=100 --carts=200
```

### Data Identification

[](#data-identification)

- **Customers**: All generated customers have customer numbers starting with `SEED-`
- **Carts**: Generated carts can be identified by their creation dates and customer associations
- **Database Safe**: The cleanup process only removes data created by this plugin

---

📝 Example Output
----------------

[](#-example-output)

```
Cart Seeder - Development Tool
==============================

Cleaning existing seeded data...
✅ Cleaned 45 customers and 89 carts

Generating fake data...
-----------------------

 100/100 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
Created 100 fake customers

 200/200 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
Created 200 fake carts

✅ Successfully created 100 customers and 200 carts!

```

---

🛠️ Technical Details
--------------------

[](#️-technical-details)

### Requirements

[](#requirements)

- **Shopware**: 6.6 or higher
- **PHP**: 8.3
- **Dependencies**: `fakerphp/faker` library
- **Extensions**: `ext-json`

### Plugin Structure

[](#plugin-structure)

```
src/
├── MaxSeeligCartSeeder.php          # Main plugin class
├── Command/
│   └── SeedCartsCommand.php         # Console command implementation
├── Service/
│   └── CartSeederService.php        # Core seeding logic
└── Resources/
    └── config/
        └── services.xml             # Dependency injection configuration

```

### Performance Considerations

[](#performance-considerations)

- **Memory Usage**: For large datasets (1000+ records), ensure adequate PHP memory limit
- **Processing Time**: Generation time scales with the number of products in your catalog
- **Database Load**: Consider running during off-peak hours for very large datasets

---

🚀 Use Cases
-----------

[](#-use-cases)

### Development Scenarios

[](#development-scenarios)

- **Feature Testing**: Test cart-related functionality with realistic data
- **UI/UX Testing**: Populate interfaces with varied cart contents
- **Performance Testing**: Load test shopping cart operations
- **Demo Preparation**: Create convincing demo data for presentations

### Testing Scenarios

[](#testing-scenarios)

- **Abandoned Cart Recovery**: Test email campaigns and recovery flows
- **Customer Segmentation**: Test customer grouping and targeting features
- **Checkout Flows**: Test various cart configurations through checkout
- **Analytics**: Generate data for testing reporting and analytics features

---

📊 Best Practices
----------------

[](#-best-practices)

### Recommended Usage

[](#recommended-usage)

```
# For development work (small dataset)
bin/console cart-seeder:seed --customers=25 --carts=50

# For feature testing (medium dataset)
bin/console cart-seeder:seed --customers=100 --carts=200

# For load testing (large dataset)
bin/console cart-seeder:seed --customers=500 --carts=1000

# For abandoned cart testing (varied cart ages)
bin/console cart-seeder:seed --customers=50 --carts=150 --min-items=1 --max-items=10
```

### Environment Setup

[](#environment-setup)

1. **Use a dedicated development database**
2. **Ensure you have sample products in your catalog**
3. **Set up proper customer groups and payment methods**
4. **Configure adequate PHP memory and execution time limits**

---

🤝 Contributing
--------------

[](#-contributing)

Yes! Issues and pull requests are welcome.

---

📄 License
---------

[](#-license)

This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

---

🔗 Related Resources
-------------------

[](#-related-resources)

- [Shopware 6 Documentation](https://docs.shopware.com/)
- [Faker PHP Documentation](https://fakerphp.github.io/)
- [Shopware Plugin Development](https://developer.shopware.com/docs/guides/plugins/)

---

**⚠️ Remember: This plugin is for development purposes only. Always use a separate development environment and never run this on production data!**

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance50

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~36 days

Total

2

Last Release

250d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0f8b77ea568d7e8d69dd8f043cd894ffeae17c971307458bfa02db8c2b172208?d=identicon)[m-a-x-s-e-e-l-i-g](/maintainers/m-a-x-s-e-e-l-i-g)

---

Top Contributors

[![m-a-x-s-e-e-l-i-g](https://avatars.githubusercontent.com/u/7907436?v=4)](https://github.com/m-a-x-s-e-e-l-i-g "m-a-x-s-e-e-l-i-g (6 commits)")

---

Tags

cartpluginshopping-cartshopwareshopware-pluginshopware6shopware6-plugin

### Embed Badge

![Health badge](/badges/m-a-x-s-e-e-l-i-g-shopware-6-cart-seeder/health.svg)

```
[![Health](https://phpackages.com/badges/m-a-x-s-e-e-l-i-g-shopware-6-cart-seeder/health.svg)](https://phpackages.com/packages/m-a-x-s-e-e-l-i-g-shopware-6-cart-seeder)
```

###  Alternatives

[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k12.2M45](/packages/knuckleswtf-scribe)[elgg/elgg

Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications.

1.7k15.7k5](/packages/elgg-elgg)[shopware/production

178190.0k](/packages/shopware-production)[frosh/tools

Provides some basic things for managing the Shopware Installation

79709.7k2](/packages/frosh-tools)[webfactory/slimdump

slimdump is a little tool to help you creating dumps of large MySQL-databases.

188124.8k1](/packages/webfactory-slimdump)[worksome/foggy

Foggy is a tool for making database dumps with some data removed/changed.

26571.7k1](/packages/worksome-foggy)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
