Skip to content

Pollora/documentation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

59 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pollora Framework Documentation

Welcome to the Pollora Framework documentation! Pollora is a modern Laravel & WordPress integration framework that creates a "sweet blend" between the two platforms, allowing developers to use Laravel's architecture patterns while maintaining WordPress functionality and compatibility.

Table of Contents

Getting Started

Core Concepts

  • Modules - Understanding the modular architecture and auto-discovery system
  • Discovery - How Pollora automatically discovers and registers components
  • Routing - Modern routing system with Laravel-style controllers
  • Controllers - Building controllers with dependency injection
  • Middleware - Request/response middleware for authentication and filtering

WordPress Integration

  • Hooks - Attribute-based WordPress hooks system
  • Post Types - Creating custom post types with attributes
  • Taxonomies - Managing custom taxonomies
  • WP REST API - Building REST endpoints with WordPress API
  • Authentication - WordPress authentication integration

Frontend Development

  • Assets - Modern asset management with Vite and Tailwind CSS
  • Theming - Theme development with Blade templates and Laravel patterns
  • Patterns - WordPress block patterns and categories

Advanced Features

  • Plugins - Complete plugin development guide with modern tooling
  • Events & Listeners - Event-driven programming patterns
  • Schedule Events - Cron jobs and scheduled tasks
  • AJAX - Handling AJAX requests with modern patterns
  • Admin Pages - Creating WordPress admin interfaces
  • Menu - Admin menu management and navigation

Development Tools

Framework Overview

What is Pollora?

Pollora bridges the gap between WordPress and Laravel by providing:

  • Laravel-style Architecture: Service providers, dependency injection, and modern PHP patterns
  • PSR-4 Autoloading: Automatic class loading with namespace conventions
  • Attribute-driven Configuration: PHP 8 attributes for declarative programming
  • Modern Asset Management: Vite integration with hot reload and Tailwind CSS
  • Command-line Tools: Artisan commands for scaffolding and management
  • Comprehensive Testing: Built-in testing support with PHPUnit

Architecture Highlights

Domain-Driven Design

The framework follows a strict DDD architecture with clear separation of concerns:

  • Application Layer: Use cases and orchestration
  • Domain Layer: Business logic and entities
  • Infrastructure Layer: External concerns and adapters
  • UI Layer: Controllers and console commands

Automatic Discovery

Pollora automatically discovers and registers:

  • Service providers
  • Views and templates
  • Routes and controllers
  • Translations
  • Database migrations
  • WordPress hooks and filters

Modern Development Stack

  • PHP 8.2+: Latest PHP features and performance
  • Laravel Components: Illuminate packages for modern development
  • Vite: Fast build tool with hot module replacement
  • Tailwind CSS: Utility-first CSS framework
  • Blade Templates: Powerful templating engine

Key Features

For WordPress Developers

  • Familiar WordPress hooks and filters
  • Seamless integration with existing WordPress sites
  • Compatible with WordPress plugins and themes
  • Maintains WordPress coding standards where appropriate

For Laravel Developers

  • Service container and dependency injection
  • Eloquent ORM for database operations
  • Artisan commands for common tasks
  • Modern PHP patterns and practices

For Both

  • Automatic component discovery
  • Attribute-based configuration
  • Modern asset compilation
  • Comprehensive testing tools
  • Clean, maintainable code structure

Getting Help

Documentation Structure

Each documentation file covers specific aspects of the framework:

  • Conceptual guides explain how things work
  • Step-by-step tutorials guide you through common tasks
  • Reference materials provide detailed API information
  • Best practices share recommended approaches

Code Examples

All documentation includes practical code examples that you can copy and adapt for your projects. Examples are tested and maintained to ensure they work with the latest version of the framework.

Community Resources

  • GitHub Repository: Report issues and contribute to the framework
  • Discussions: Community Q&A and feature discussions
  • Examples: Sample projects and implementations

Contributing

We welcome contributions to both the framework and documentation! Please see our Contributing Guide for details on:

  • Code standards and conventions
  • Testing requirements
  • Pull request process
  • Documentation guidelines

License

The Pollora Framework is open-source software licensed under the MIT License.


Ready to get started? Begin with the Installation Guide and then follow the Getting Started tutorial to build your first Pollora application.

About

Documentation for the Pollora framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •