Package

Pollora

Skeleton for Pollora, the Laravel framework for WordPress: create a WordPress project running inside Laravel.

Package

pollora/pollora

View on GitHub →

Pollora: The Laravel framework for WordPress

Latest Version Total Downloads Tests License

Pollora is the Laravel framework for WordPress, and this repository is the skeleton composer create-project installs. WordPress runs inside a Laravel application: the front end uses Laravel routing, controllers, Blade and Eloquent, while the WordPress admin, database and plugins keep working as usual. You start a WordPress site with a real Laravel project around it, instead of a theme folder full of functions.php code.

Website · Documentation · Why Pollora · How Pollora compares with Acorn, Sage, Radicle and Corcel · 1-minute tour

Installation

With the Pollora CLI, which can also set up a DDEV environment:

composer global require pollora/cli
pollora new my-project --ddev

Or with Composer:

composer create-project pollora/pollora my-project
cd my-project
# Configure your .env with database credentials, then:
php artisan pollora:install

The installation guide covers both paths, the interactive setup and DDEV.

Requirements:

  • PHP 8.4+ (this skeleton's composer.lock ships Symfony 8, which requires it)
  • Composer 2.x
  • Node.js 20.19+ or 22.12+ & npm (the floor Vite 7 requires)
  • A database (MySQL, MariaDB, or SQLite)
  • WordPress 7.1+ is installed for you through Composer

What you get

  • WordPress routing with Route::wp() and template hierarchy support
  • PHP attributes for hooks, post types, taxonomies, scheduling, and REST routes
  • Blade templates with Sage Directives (@title, @content, @permalink...)
  • Eloquent ORM with WordPress models via Colt
  • Multi-theme support with parent/child themes and Vite asset bundling
  • Auto-discovery for service providers, hooks, and components
  • Gutenberg blocks rendered with Blade, block patterns and categories
  • Laravel's database migrations, sessions, and cache, next to WordPress

Documentation

Full documentation is available at pollora.dev, starting with the installation guide.

Changelog

All notable changes are documented in the CHANGELOG.

Support the project

Questions, ideas and feedback are welcome in GitHub Discussions.

Contributing

Contributions are welcome: see the contributing guide. Branch from main: this repository has no develop branch. Participation is covered by our Code of Conduct. Report security issues privately, as described in the security policy.

License

Pollora is open-source software licensed under the MIT license. © RuBee group

Pollora Pollora Related Articles

Pollora: Run WordPress Inside a Laravel Application image

Pollora: Run WordPress Inside a Laravel Application

Read article

Let your users buy domains without leaving your app

If your Laravel app gives users a site, a storefront, or a workspace, they’ll eventually want their own domain. The name.com API lets them search, register, and connect one without leaving your product. It’s a clean REST API, so Laravel’s HTTP client is all you need.

Let your users buy domains without leaving your app

PhpStorm

The go-to PHP IDE with extensive out-of-the-box support for Laravel and its ecosystem.

PhpStorm

Acquaint Softtech

Acquaint Softtech offers AI-ready Laravel developers who onboard in 48 hours at $3000/Month with no lengthy sales process and a 100 percent money-back guarantee.

Acquaint Softtech

Shift

Running an old Laravel version? Instant, automated Laravel upgrades and code modernization to keep your applications fresh.

Shift

Harpoon: Next generation time tracking and invoicing

The next generation time-tracking and billing software that helps your agency plan and forecast a profitable future.

Harpoon: Next generation time tracking and invoicing

Kirschbaum

Providing innovation and stability to ensure your web application succeeds.

Kirschbaum