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.
- Installation - Complete installation guide and setup instructions
- Getting Started - Quick start guide to build your first application
- IDE Integration - Configure your IDE for optimal development experience
- 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
- 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
- Assets - Modern asset management with Vite and Tailwind CSS
- Theming - Theme development with Blade templates and Laravel patterns
- Patterns - WordPress block patterns and categories
- 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
- Documentation - Documentation standards and guidelines
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
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
Pollora automatically discovers and registers:
- Service providers
- Views and templates
- Routes and controllers
- Translations
- Database migrations
- WordPress hooks and filters
- 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
- Familiar WordPress hooks and filters
- Seamless integration with existing WordPress sites
- Compatible with WordPress plugins and themes
- Maintains WordPress coding standards where appropriate
- Service container and dependency injection
- Eloquent ORM for database operations
- Artisan commands for common tasks
- Modern PHP patterns and practices
- Automatic component discovery
- Attribute-based configuration
- Modern asset compilation
- Comprehensive testing tools
- Clean, maintainable code 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
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.
- GitHub Repository: Report issues and contribute to the framework
- Discussions: Community Q&A and feature discussions
- Examples: Sample projects and implementations
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
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.