Skip to content

roots/acorn

Repository files navigation

Trellis

MIT License Laravel v9 Release Build Status Follow Roots

Laravel components for WordPress plugins and themes

Website    Documentation    Releases    Support

Sponsors

Acorn is an open source project and completely free to use.

However, the amount of effort needed to maintain and develop new features and products within the Roots ecosystem is not sustainable without proper financial backing. If you have the capability, please consider sponsoring Roots.

Sponsor Roots

KM Digital Carrot WordPress.com Pantheon Worksite Safety

Overview

Acorn is a way to use Laravel components inside of WordPress.

Acorn CLI output

Requirements

See the full installation docs for requirements.

Installation

The main branch currently tracks Acorn v3 which is in active development. Looking for Acorn v2 or the latest Acorn v3 beta release? See releases.

To install Acorn in a Bedrock environment, navigate to your Bedrock directory and run the following command:

$ composer require roots/acorn

To install the latest development version of Acorn, add dev-main to the end of the command:

$ composer require roots/acorn dev-main

We recommend adding Acorn's postAutoloadDump function to Composer's post-autoload-dump event in composer.json:

"post-autoload-dump": [
  "Roots\\Acorn\\ComposerScripts::postAutoloadDump"
]

Community

Keep track of development and community news.