WPZylos Scaffold Documentation

Plugin scaffolding for WPZylos projects with integrated CLI tooling.

What You Get

  • Scaffold CLI - Initialize and build plugins with one command
  • Complete MVC structure - Controllers, Services, Views, Routes
  • PHP-Scoper ready - Pre-configured namespace isolation
  • QA integrated - phpcbf and phpstan in build pipeline

Quick Start

# Create a new plugin
composer create-project MyCompanystudio/wpzylos-scaffold my-plugin
cd my-plugin

# Initialize (interactive)
.\scaffold.ps1              # Windows
./scaffold                  # Linux/Mac

Generated Structure

my-plugin/
+-- scaffold.ps1            # CLI entry point
+-- .scripts/               # CLI scripts
+-- my-plugin.php           # Main plugin file
+-- app/                    # Application code
+-- config/                 # Configuration
+-- routes/                 # Route definitions
+-- resources/views/        # Templates
+-- scoper.inc.php          # PHP-Scoper config

Documentation