This repo can be used to scaffold an Acorn package. See the Acorn Package Development docs for further information.
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.
You can install this package with Composer:
composer require vendor-name/example-packageWhen using this repository as a package scaffold, run the configure script after creating the package:
php configure.phpFor automation or CI, you can run it non-interactively:
php configure.php --no-interaction --author-name="Your Name" --author-email="you@example.com" --vendor-slug="your-vendor" --vendor-namespace="YourVendor" --package-slug="your-package" --class-name="YourPackage" --package-description="Your package description"To preview changes without writing files:
php configure.php --dry-runYou can publish the config file with:
$ wp acorn vendor:publish --provider="VendorName\ExamplePackage\Providers\ExampleServiceProvider"From a Blade template:
@include('Example::example')From WP-CLI:
$ wp acorn exampleKeep 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