PHPackages                             thunder/testsite\_builder - 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. [CLI &amp; Console](/categories/cli)
4. /
5. thunder/testsite\_builder

ActiveDrupal-module[CLI &amp; Console](/categories/cli)

thunder/testsite\_builder
=========================

Provides Drupal console command to create site configuration and content based on Sampler module report

213.1k↓75%[4 issues](https://github.com/thunder/testsite_builder/issues)[1 PRs](https://github.com/thunder/testsite_builder/pulls)PHP

Since Sep 23Pushed 4y ago3 watchersCompare

[ Source](https://github.com/thunder/testsite_builder)[ Packagist](https://packagist.org/packages/thunder/testsite_builder)[ RSS](/packages/thunder-testsite-builder/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (7)Used By (0)

Testsite Builder
================

[](#testsite-builder)

The Testsite Builder provides Drush commands for the creation of test sites based on the report generated by [Sampler module](https://github.com/thunder/sampler).

Prerequisites
-------------

[](#prerequisites)

Your project should be set up to use composer for installing the required modules. Projects that have a different setup are not supported.

This module provides Drush commands only. If you do not already use Drush, install it before continuing.

Installation
------------

[](#installation)

In your project-root do:

```
composer require thunder/testsite_builder

```

Then enable the testsite\_builder module, either with command line or in the admin UI.

```
drush en testsite_builder

```

Flush the caches, and you are ready to go.

### Adjust database

[](#adjust-database)

To use the content-create functionality of the testsite\_builder, adjust the MySQL database settings.

#### Grant files

[](#grant-files)

Login as root and execute

```
GRANT FILE on *.* to 'drupaluser'@'localhost'
GRANT SUPER on *.* to 'drupaluser'@'localhost'

```

#### Adjust config

[](#adjust-config)

Open your my.cnf and add

```
[mysqld]
   secure-file-priv=""

```

Restart the MySQL Server.

Usage
-----

[](#usage)

#### Create configuration

[](#create-configuration)

To create site configuration from Sampler report, you can execute the following command: `drupal testsite-builder:create-config `

That command removes all existing content and configuration for the site and generates a new configuration from the provided Sampler report file.

#### Create configuration and content

[](#create-configuration-and-content)

To create site configuration from Sampler report and content for it, you can execute the following command: `drupal testsite-builder:create-config  --create-content`

That command removes all existing content and configuration for the site, generate new configuration and content from the provided Sampler report file.

The Testsite Builder executes the content creation task in the following steps:

1. it creates content and stores them in temporal CSV files ready for database import
2. it imports created CSV files into database
3. it deletes temporal CSV files after database import

If you want to investigate CSV files and intermediary configuration used for content creation, you can add an option to the previous command to keep created files. Like this: `drupal testsite-builder:create-config  --create-content --keep-content-files`

In this case, the Testsite Builder skips step 3, and the command outputs the path to temp directory with generated CSV files.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/dfe90fee04d5ef4d2bd1ea46dc65f6aec95b2486e2ce47f3439b3e06eb2f37dd?d=identicon)[dbosen](/maintainers/dbosen)

---

Top Contributors

[![chrfritsch](https://avatars.githubusercontent.com/u/731161?v=4)](https://github.com/chrfritsch "chrfritsch (17 commits)")[![mtodor](https://avatars.githubusercontent.com/u/3965286?v=4)](https://github.com/mtodor "mtodor (17 commits)")[![alexpott](https://avatars.githubusercontent.com/u/769634?v=4)](https://github.com/alexpott "alexpott (4 commits)")[![dbosen](https://avatars.githubusercontent.com/u/6398151?v=4)](https://github.com/dbosen "dbosen (1 commits)")[![ol0lll](https://avatars.githubusercontent.com/u/5558666?v=4)](https://github.com/ol0lll "ol0lll (1 commits)")

### Embed Badge

![Health badge](/badges/thunder-testsite-builder/health.svg)

```
[![Health](https://phpackages.com/badges/thunder-testsite-builder/health.svg)](https://phpackages.com/packages/thunder-testsite-builder)
```

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.0k17.2M320](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/packages/consolidation-annotated-command)[chi-teck/drupal-code-generator

Drupal code generator

26947.8M5](/packages/chi-teck-drupal-code-generator)[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24725.8M17](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)

PHPackages © 2026

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