Technology1 min read

Pollora: Run WordPress Inside a Laravel Application

By · Published by Everything Blog

In short

Pollora bridges the two environments by using Laravel's native router alongside custom methods like `Route::wp()` to handle conditional tags and fall back to Blade-rendered templates. Developers can replace procedural setup functions by declaring post types, taxonomies, and hooks directly as PHP class attributes. Artisan commands also scaffold Gutenberg blocks that build assets via Vite and render with Blade. Under the hood, the system relies on Colt, a Corcel fork, to manage data layers while redirecting WordPress media library uploads to cloud storage disks like Amazon S3.

Key points

  • Developers can register WordPress hooks, custom taxonomies, and post types modernly via P…: Developers can register WordPress hooks, custom taxonomies, and post types modernly via PHP class attributes.
  • Core request handling remains under Laravel's control while routing gracefully falls back…: Core request handling remains under Laravel's control while routing gracefully falls back to Blade templates based on WordPress conditional tags.
  • Full administrative functionality remains accessible to site managers at the cms wp-admin…: Full administrative functionality remains accessible to site managers at the cms wp-admin directory path.

Sources checked by our analysis pipeline: 1

Pollora is a framework that runs WordPress inside a Laravel application. Laravel boots first and handles front-end requests with its router, controllers, and Blade, while the WordPress admin, database, and plugins keep working.

Here's what the framework gives you:

- WordPress-aware routing: Laravel routes on conditional tags, with the template hierarchy as a fallback

- Attribute registration: post types, taxonomies, hooks, and REST routes declared as PHP attributes

- Blade themes and blocks: Blade views, Vite assets, and Gutenberg blocks rendered with Blade

- Eloquent models: WordPress data through Colt, a fork of Corcel

- Media storage: the media library on any Laravel disk, including S3 and R2

- Agent tooling: Pollora guidelines and MCP tools through Laravel Boost

How Pollora Runs WordPress

Composer installs WordPress core into public/cms

, and Pollora loads it while Laravel boots, using your Laravel config and database connection. WordPress still parses each request, so conditional tags like is_single()

work as usual, but Laravel renders the response. The admin dashboard at /cms/wp-admin/

works like it does on any WordPress site.

Because both frameworks run together,…

Technology