August 25th, 2024

Acorn – Use Laravel Inside WordPress

Acorn integrates Laravel components into WordPress, supporting routing, database management, and caching. It offers a WP-CLI interface and is part of the Roots ecosystem, with over 1.1 million installs.

Read original articleLink Icon
Acorn – Use Laravel Inside WordPress

Acorn is a framework designed to integrate Laravel components within WordPress, allowing developers to utilize Laravel's functionality in their WordPress projects. It supports a variety of Laravel components, including routing, database management, and caching, while maintaining compatibility with the WordPress lifecycle and template hierarchy. Acorn also provides a command-line interface similar to Laravel's Artisan through WP-CLI, enabling users to perform tasks such as creating components, managing migrations, and clearing caches. This integration allows developers to leverage the extensive Laravel ecosystem, enhancing the capabilities of WordPress themes and plugins. The framework is part of the Roots ecosystem, which includes other tools like Bedrock, Bud, and Sage, aimed at improving WordPress development workflows. Acorn has gained popularity, with over 1.1 million installs, reflecting its utility in modern web development.

- Acorn integrates Laravel functionality into WordPress projects.

- It supports various Laravel components and maintains WordPress compatibility.

- WP-CLI commands provide a familiar interface for managing WordPress applications.

- The framework is part of the Roots ecosystem, enhancing WordPress development.

- Acorn has over 1.1 million installs, indicating its popularity among developers.

Link Icon 6 comments
By @askonomm - 9 months
Unfortunately any PHP devloper worth their money knows that developing WP sites, even if you follow the WP's standard to the T, is a horrible experience riddled with anti patterns. But, to try to remedy that by duct-taping an entirely different framework on top doesn't, to me at least, make things any better. In fact, it makes it worse - now there's two frameworks to maintain.
By @charlie0 - 9 months
Frankstein-ing frameworks like this is asking for trouble. This smells like something that was made by devs because they hated working on WP, not understanding that the reason why WP is picked if often due to political reasons, not technical ones.

I predict two forces will turn these kinds of projects into spaghetti: Actual devs working on resolving issues with code, less technical people fighting to use plugins and other add-ons to add functionality.

By @acomjean - 9 months
I work on a website for a non-profit. We have a hybrid wordpress symfony site. We're always being pulled two ways, we like that we switched to wordpress for the more static parts of the site (CMS). We have some minor custom functionality thats being handled by symfony, that should righly be a wordpress plug in....

This might be the thing. Especially if you can use it for plug-ins.

By @wizzzzzy - 9 months
Having used acorn (via roots sage) on a project recently I'd say on balance it does improve working with Wordpress. I wouldn't describe it as a nice experience though.
By @ochrist - 9 months
Oh no.

Acorn was - and is - the then famous Acorn Computers. Makers of the BBC computer and eventually the inventor of the ARM processor (first used in the Archimedes range of computers).

Please use another name (end of rant).