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↓80%[3 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 3w 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 21% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity43

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

[illuminate/console

The Illuminate Console package.

13046.0M6.4k](/packages/illuminate-console)[styleci/cli

The CLI tool for StyleCI

71470.5k9](/packages/styleci-cli)[winbox/args

Windows command-line formatter

20720.9k21](/packages/winbox-args)

PHPackages © 2026

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