/acorn

Laravel components for WordPress plugins and themes

Primary LanguageJavaScriptMIT LicenseMIT

Acorn

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

Navigate to your Bedrock directory (recommended), or your Sage-bsaed theme 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.