Helper to generate WordPress Composer packages
This package helps to generate Composer packages for any WordPress release.
Roots is an independent open source org, supported only by developers like you. Your sponsorship funds WP Packages and the entire Roots ecosystem, and keeps them independent. Support us by purchasing Radicle or sponsoring us on GitHub — sponsors get access to our private Discord.
$ vendor/bin/wordpress-packager [--source SOURCE] [-t|--type TYPE] [-u|--unstable] [--] <remote> <package>Required.
A valid git repository remote.
Eg. https://github.com/org/project.git
Required.
A valid Composer package name.
Eg. wordpress-package
Optional, default WPDotOrgAPI.
Must be a PHP class implementing Roots\WordPressPackager\ReleaseSources\SourceInterface.
Provides the implementation of data generation for packages.
Optional, default full.
Different release types are available as WordPress core deliveries.
The list of themes and plugins bundled differs between release types.
| Type | Official | Themes | Plugins | Beta & RC |
|---|---|---|---|---|
full |
✅ | 3 latest official | Akismet, Hello Dolly | ✔️ |
new-bundled |
✅* | 3 latest official | none | ❌ |
no-content |
✅* | none | none | ❌ |
* Although they are not extensively documented, these builds are made available by WordPress.org as regular builds.
Optional.
If set, the available unstable releases (beta & release candidates) will be added as well.
- WP Packages — All WordPress.org plugins and themes as a Composer repository
Keep track of development and community news.
- Join us on Discord by sponsoring us on GitHub
- Join us on Roots Discourse
- Follow @rootswp on Twitter
- Follow the Roots Blog
- Subscribe to the Roots Newsletter