WP Transformer

Converts WordPress MySQL dumps into self-contained static HTML sites β€” no live WordPress installation required.

Stack

  • PHP 8.1+ β€” no framework, no Composer
  • MySQL β€” two tables (wpt_users, wpt_tenants)
  • Tailwind CSS v3 β€” pre-compiled, dark theme
  • Hosting β€” any managed PHP/MySQL host (tested: ALL-INKL)

Architecture

SQL Dump (Upload)
    β”‚
    β–Ό
WPParser          β€” pure-PHP tokenizer, no MySQL dependency
    β”‚
    β–Ό
content.json      β€” posts, pages, categories
    β”‚
    β–Ό
StaticBuilder     β€” index.html, per-post HTML, feed.json, .htaccess
    β”‚
    β”œβ”€β”€ ZIP Download
    └── FTP Deploy  β†’ Customer subdomain / server

Multi-Tenant Pipeline

Each tenant (client) goes through four steps β€” with human review at each:

  1. SQL Upload β€” WordPress UpdraftPlus / mysqldump export
  2. Parse β€” extracts posts/pages/categories, auto-detects DB prefix
  3. Build β€” generates static HTML with per-tenant branding
  4. Deploy β€” ZIP download or direct FTP push

Deployment (ALL-INKL)

  1. Upload all files via FTP to domain root
  2. Import init.sql via phpMyAdmin
  3. Create config.local.php in root (see below)
  4. Open https://yourdomain.tld/setup.php β€” or upload config.local.php directly
  5. KAS β†’ Subdomains: point tenant.yourdomain.tld β†’ tenants/{slug}/public

config.local.php

<?php
define('DB_HOST', 'localhost');
define('DB_NAME', 'your_db_name');
define('DB_USER', 'your_db_user');
define('DB_PASS', 'your_db_pass');

Security

  • .htaccess blocks direct access to .sql, .sh, .md, config.local.php
  • tenants/ blocked except tenants/*/public/
  • CSRF tokens on all POST forms
  • Path traversal protection on $slug
  • display_errors off in production
  • bcrypt password hashing (cost 12)
  • IP-based login rate limiting via access_logs

Long-Term Architecture

RZ (fixed IP, BSI, Zero Trust)
  └── RetroPWD + Ollama AI Backend
         β”‚  AI-assisted content generation  [human review]
         β–Ό
  WPTransformer (managed hosting)
         β”‚  Parse β†’ Build β†’ Deploy          [human review]
         β–Ό
  Customer static sites
  (e.g. ozm.wptransformer.org β†’ onezeromore.com)

Version

1.0.0 β€” Initial production release, May 2026