Skip to content

Latest commit

 

History

1,221 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pollora

Latest Version Total Downloads Coverage License

About Pollora

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; }
}

Key Features

  • 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

Documentation

Full documentation is available at pollora.dev.

Installation

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

Requirements

  • 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+

Learn more

Testing

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 Rector

Contributing

Please see CONTRIBUTING.md for details.

Security

If you discover a security vulnerability, please report it via GitHub Security Advisories. See SECURITY.md for details.

Changelog

All notable changes are documented in CHANGELOG.md.

Credits

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.

License

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.

About

The Laravel framework for WordPress: Blade, Laravel routing and Eloquent, PHP 8 attributes for hooks, post types and REST routes.

Topics

Resources

Contributing

Security policy

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages