Download the PHP package humanmade/woocommerce-demo-generator without Composer
On this page you can find all versions of the php package humanmade/woocommerce-demo-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package woocommerce-demo-generator
WooCommerce Demo Generator
Lightweight WP-CLI tool for generating demo products and orders in WooCommerce using Faker.
Maintained by Human Made, created by Claude Code.
Requirements
- PHP 8.0+
- WordPress 6.0+
- WooCommerce 8.0+
Installation
Install via Composer:
Then activate the plugin:
Generating Products
Generate demo products with realistic names, descriptions, prices, and stock levels:
Products are distributed across 8 categories: Electronics, Clothing, Home & Garden, Sports & Outdoors, Beauty & Health, Books & Media, Toys & Games, and Food & Beverages.
Options
| Option | Description | Default |
|---|---|---|
--count=<n> |
Number of products to generate | 100 |
--category=<slug> |
Limit to specific category | All |
--no-images |
Skip placeholder image downloads | false |
--batch-size=<n> |
Products per batch before cache clear | 100 |
Examples
Available Categories
View available categories with their configuration:
| Slug | Name | Price Range |
|---|---|---|
electronics |
Electronics | $20 - $2,000 |
clothing |
Clothing | $15 - $300 |
home-garden |
Home & Garden | $10 - $500 |
sports |
Sports & Outdoors | $13 - $600 |
beauty |
Beauty & Health | $8 - $150 |
books |
Books & Media | $5 - $80 |
toys |
Toys & Games | $10 - $150 |
food |
Food & Beverages | $6 - $90 |
Each category has 10 brands, 10 style prefixes, and 15 product types for varied product name generation.
Generating Orders
Generate demo orders with realistic customer data, addresses, and order history:
Orders include Faker-generated billing/shipping addresses, random product selections, varied order statuses, and dates spread over a configurable time range.
Options
| Option | Description | Default |
|---|---|---|
--count=<n> |
Number of orders to generate | 100 |
--products=<ids> |
Comma-separated product IDs to use | All products |
--demo-products-only |
Only use demo-generated products | false |
--days=<n> |
Spread orders over this many days | 365 |
--min-items=<n> |
Minimum items per order | 1 |
--max-items=<n> |
Maximum items per order | 5 |
--batch-size=<n> |
Orders per batch before cache clear | 50 |
Examples
Order Status Distribution
Orders are created with realistic status distribution:
| Status | Percentage |
|---|---|
| Completed | 50% |
| Processing | 20% |
| On Hold | 10% |
| Cancelled | 8% |
| Pending | 5% |
| Refunded | 5% |
| Failed | 2% |
Listing Demo Data
View summaries of generated demo data:
Cleanup
Remove all demo data when no longer needed:
Demo products and orders are tracked with post meta (_demo_product_generated and _demo_order_generated) so they can be cleanly removed without affecting real data.
Performance
For large imports (10,000+ items), the plugin automatically clears object caches periodically to prevent memory exhaustion. Adjust batch sizes based on your server's available memory:
Skipping images with --no-images significantly improves product generation speed.
Credits
Created by the team at Human Made.
Interested in joining? We're hiring!