WPZylos Scaffold
Bootstrap your next premium WordPress plugin in seconds. The scaffold includes everything you need: modern architecture, testing tools, and best practices baked in.
What's Included
Everything you need to build professional plugins
Modern Directory Structure
PSR-4 autoloading, organized source files, and clear separation of concerns.
Pre-configured Tools
PHPStan, PHP_CodeSniffer, and PHPUnit ready to go with sensible defaults.
Service Container
Dependency injection container with autowiring for clean, testable code.
CLI Commands
Artisan-like commands for generating controllers, models, and more.
Security Built-in
Nonce handling, input sanitization, and capability checks preconfigured.
i18n Ready
Translation functions and POT file generation out of the box.
Laravel-Inspired Structure
If you've worked with Laravel, you'll feel right at home. The scaffold follows familiar conventions adapted for the WordPress environment.
- PSR-4 autoloading with Composer
- Service providers for modular registration
- Environment-based configuration
- Database migrations and seeders
- Blade-style view templating
my-plugin/
+-- app/
| +-- Http/
| | +-- Controllers/
| | +-- Middleware/
| +-- Models/
| +-- Providers/
| | +-- AppServiceProvider.php
| +-- Core/
| +-- PluginContext.php
+-- config/
| +-- app.php
| +-- database.php
+-- database/
| +-- migrations/
+-- resources/
| +-- views/
| +-- assets/
+-- routes/
| +-- web.php
| +-- admin.php
+-- tests/
+-- bootstrap/
| +-- app.php
+-- composer.json
+-- phpstan.neon
+-- phpunit.xml
+-- my-plugin.phpQuick Start
Get up and running in under a minute
Clone or download the scaffold
composer create-project wpzylos/scaffold my-pluginConfigure your plugin
Update plugin.php with your plugin name, namespace, and text domain.
Start building!
php zylos make:controller HomeControllerReady to level up your WordPress development?
Join hundreds of developers building premium WordPress plugins with WPZylos.