Skip to content

Pollora/plugin-default

Repository files navigation

%plugin_name%

%plugin_description%

Description

This plugin is built using the Pollora Framework, which provides a modern development experience by bridging Laravel and WordPress.

Installation

  1. Upload the plugin files to the /wp-content/plugins/%plugin_slug% directory
  2. Activate the plugin through the 'Plugins' screen in WordPress
  3. Use the Settings -> %plugin_name% screen to configure the plugin

Features

  • Modern PHP 8.1+ codebase
  • Laravel-style architecture with Pollora Framework
  • PSR-4 autoloading
  • Service provider pattern
  • Attribute-driven configuration
  • Comprehensive testing suite

Requirements

  • WordPress 5.0 or higher
  • PHP 8.1 or higher
  • Pollora Framework

Configuration

The plugin can be configured through the WordPress admin interface or by modifying the configuration files in the config/ directory.

Development

Directory Structure

%plugin_slug%/
├── app/                    # Application code (PSR-4 autoloaded)
│   ├── Providers/         # Service providers
│   └── %plugin_namespace%Plugin.php  # Main plugin class
├── assets/                # CSS, JS, and image files
├── config/                # Configuration files
├── languages/             # Translation files
├── views/                 # Blade templates
├── routes/                # Route definitions
└── %plugin_name%.php     # Main plugin file

Service Providers

The plugin uses Laravel-style service providers for dependency injection and service registration. The main service provider is located at app/Providers/PluginServiceProvider.php.

Autoloading

The plugin follows PSR-4 autoloading standards with the namespace Plugin\%plugin_namespace%\.

Hooks and Filters

WordPress hooks and filters can be registered using PHP 8 attributes or traditional WordPress functions.

Support

For support and documentation, please visit %plugin_uri%.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This plugin is licensed under the GPL v2 or later.

Changelog

%plugin_version%

  • Initial release

Credits