Rudel
Features

Standalone mode lets external PHP code inspect Rudel's registry with a direct MySQL connection.

It is intended for:

  • listing sandboxes
  • loading one sandbox by ID
  • inspecting worktree metadata
  • reading lifecycle metadata

It is not intended for:

  • creating sandboxes
  • destroying sandboxes
  • cloning WordPress tables
  • installing the bootstrap
  • routing live requests

Those operations require WordPress runtime services.

Initialize

use Rudel\Rudel;

Rudel::init( [
    'db' => [
        'host'     => '127.0.0.1',
        'database' => 'wordpress',
        'username' => 'root',
        'password' => 'root',
        'prefix'   => 'wp_',
    ],
    'context' => [
        'environments_dir' => '/var/www/html/wp-content/rudel-environments',
    ],
] );

Read records

$environments = Rudel::environments();
$environment  = Rudel::environment_by_id( 'alpha-1234' );

Standalone reads use the same repository layer as WordPress runtime reads.

On this page