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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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

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!


All versions of woocommerce-demo-generator with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0
fakerphp/faker Version ^1.23 || ^2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package humanmade/woocommerce-demo-generator contains the following files

Loading the files please wait ...