roots/wordpress-packager
Roots tooling that builds and publishes Composer packages for WordPress core and plugins, so you can install WordPress and extensions as standard dependencies with version constraints. Automates release packaging for Bedrock-style projects managed entirely through Composer.
twenty*, Akismet, Hello Dolly) are stripped, wp-content is entirely yours. Enables a lean, repeatable site template, smaller images, faster cold builds, fewer outdated files on disk to explain in a security review.Adopt when:
composer install in CI.Look elsewhere or skip when:
wp-content layout and a couple of constants get most of that without a packaging pipeline.Due diligence before committing:
Executives: WordPress core becomes a pinned, versioned dependency in the same lockfile as the rest of the application. Deploys become reproducible and reversible, staging matches production, and every core change is a reviewed PR rather than an overnight click in wp-admin. Security posture improves because we ship only the themes and plugins we actually use; ops cost drops because the build is automated. The tradeoff to accept consciously: we now own upgrade cadence. MIT licensed, no fees, and it's the standard path within an established ecosystem rather than a bet on a tiny project.
Engineering: it's a packaging step, not runtime code. Consume the generated core package as a Composer dependency, run it in CI, keep wp-content in our repo. No new runtime abstraction in the app and easy to reverse — swap the dependency for another core package or a vendored tarball. Two guardrails: pin the version and track upstream release cadence, and mirror artifacts if the build environment can't reliably reach Packagist.
How can I help you explore Laravel packages today?