Pollora is the Laravel framework for WordPress. WordPress runs inside a Laravel application: the front end uses Laravel routing, controllers, Blade and Eloquent, while the WordPress admin, database, editors' workflow and plugins keep working as usual. Hooks, post types, taxonomies and REST routes are declared with PHP 8 attributes and registered by auto-discovery.
Website · Documentation · Why Pollora · How Pollora compares with Acorn, Sage, Radicle and Corcel · 1-minute tour
use Pollora\Attributes\Filter;
use Pollora\Attributes\PostType;
use Pollora\Attributes\PostType\HasArchive;
use Pollora\Attributes\PostType\Supports;
#[PostType]
#[HasArchive]
#[Supports(['title', 'editor', 'thumbnail'])]
class Book {}
class Seo
{
#[Filter('document_title_parts')]
public function title(array $parts): array { /* ... */ return $parts; }
}- WordPress routing via
Route::wp()with template hierarchy support - PHP attributes for hooks (
#[Action],#[Filter]), post types (#[PostType]), taxonomies (#[Taxonomy]), scheduling (#[Schedule]), and REST routes (#[WpRestRoute]) - Auto-discovery system that scans and registers components automatically
- Blade templates with Sage Directives for WordPress data
- Theme system with dynamic PSR-4 autoloading, parent/child theme support, and Vite asset management
- WordPress authentication guard and password hashing integration
- Event dispatching for WordPress core, WooCommerce, Gravity Forms, and Yoast SEO
- Module system via nwidart/laravel-modules
Full documentation is available at pollora.dev.
Create a project with the Pollora CLI, or with Composer through the skeleton. See the installation guide:
composer global require pollora/cli
pollora new my-project --ddev
# or
composer create-project pollora/pollora my-project- PHP 8.4+ for a new project (the skeleton's lock file ships Symfony 8; this package alone accepts PHP 8.3)
- Laravel 13.34 (Pollora's version numbers follow the Laravel release it is built on)
- WordPress 7.1+
- WordPress hooks with PHP 8 attributes
- Custom post types and taxonomies with PHP attributes
- How Pollora runs WordPress inside Laravel
- AI coding agents for WordPress projects (Nectar)
composer test # Run all checks (Rector, Pint, PHPStan, Pest)
composer test:unit # Run Pest tests with 100% coverage requirement
composer test:types # Run PHPStan static analysis
composer test:lint # Check code style with Pint
composer test:refacto # Check refactoring rules with RectorPlease see CONTRIBUTING.md for details.
If you discover a security vulnerability, please report it via GitHub Security Advisories. See SECURITY.md for details.
All notable changes are documented in CHANGELOG.md.
Pollora builds on the work of Roots, a constant source of inspiration: themes, blocks and plugins are built with @roots/vite-plugin, the project follows the Bedrock layout with roots/bedrock-autoloader, and Blade ships Sage Directives. The WordPress models are built on Colt, a fork of Corcel.
Pollora is open-sourced software licensed under the MIT license.
Parts of the WordPress integration (Pollora\Support\WordPress, Pollora\Hashing\WordPressHasher) originate from work by Jordan Doyle, released under the 0BSD and WTFPL licenses.