https://github.com/roots/acorn-example-package
A template for creating your own Acorn packages
https://github.com/roots/acorn-example-package
Last synced: 4 months ago
JSON representation
A template for creating your own Acorn packages
- Host: GitHub
- URL: https://github.com/roots/acorn-example-package
- Owner: roots
- License: mit
- Created: 2022-06-21T00:52:42.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-24T19:17:38.000Z (11 months ago)
- Last Synced: 2025-07-06T08:41:17.129Z (6 months ago)
- Language: PHP
- Homepage: https://roots.io/acorn/docs/package-development/
- Size: 12.7 KB
- Stars: 23
- Watchers: 4
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Acorn Example Package
This repo can be used to scaffold an Acorn package. See the [Acorn Package Development](https://roots.io/acorn/docs/package-development/) docs for further information.
## Installation
You can install this package with Composer:
```bash
composer require vendor-name/example-package
```
You can publish the config file with:
```shell
$ wp acorn vendor:publish --provider="VendorName\ExamplePackage\Providers\ExampleServiceProvider"
```
## Usage
From a Blade template:
```blade
@include('Example::example')
```
From WP-CLI:
```shell
$ wp acorn example
```