Skip to content

WordPress Plugin Boilerplate – README

This boilerplate gives you a structured starting point for building modern WordPress plugins. Use this landing page to choose the workflow you need, understand the moving parts, and jump directly to the relevant guide.

  1. Create your plugin from the boilerplate.

    Terminal
    composer create-project juvo/wordpress-plugin-boilerplate
  2. Start the local WordPress environment.

    Terminal
    npm run env:start
  3. Pick the guide that matches your next task.

If you want to…Open this guide
start the Docker-based WordPress environmentwp-env.mdx
run PHPUnit application teststesting.mdx
understand CI and release automationgithub-actions.mdx
compile and bundle scripts or stylesbundeling.mdx
If you want to…Open this guide
scaffold and register Gutenberg blockscreate-blocks.mdx
register WordPress abilitiesabilities.mdx
wire in translation extraction and compilationi18n.mdx
expose load hooks for companion pluginscompanion-plugins.mdx
If you want to…Open this guide
store ACF field groups in version controlintegrations/acf.mdx
configure broader ACF integration patternsintegrations/acf.mdx
capture runtime errors with Sentryintegrations/sentry.mdx
If you want to…Open this guide
understand AI commands, skills, and repo instructionswork-with-ai.mdx
keep docs consistent and well-structureddocumentation.mdx
  • demo-plugin.php Main bootstrap file
  • Directorysrc/
    • DirectoryAbilities/ WordPress abilities and categories
      • …
    • DirectoryAPI/ REST API-specific code
      • …
    • DirectoryBlocks/ Gutenberg block implementations
      • …
    • DirectoryCLI/ WP-CLI commands
      • …
    • DirectoryIntegrations/ Third-party and platform integrations
      • …
  • Directoryresources/
    • Directoryadmin/ Admin-side scripts and styles
      • …
    • Directoryfrontend/ Frontend scripts and styles
      • …
  • Directorytests/
    • Directoryphp/ PHPUnit application tests
      • …
  • Directorydocs/ This documentation site
    • …
  • clear separation between bootstrap code, plugin logic, assets, docs, and tests
  • reproducible local development with wp-env
  • production-ready quality gates for PHP, JavaScript, styles, and application tests
  • documented extension points for blocks, abilities, translations, and integrations
  • AI-friendly project instructions without replacing human-readable docs

The root README.md in the source repository is the developer-oriented repo introduction. It is the best place to understand the repository layout, command surface, AI instructions, and maintenance expectations.

  • PHP67%
  • JavaScript33%