Installation

Requirements

  • PHP 8.1 or higher
  • WordPress 6.0 or higher
  • Composer

Installing via Composer

composer require wpzylos/core

Dependencies

This package has no external dependencies beyond PHP itself and is designed to work standalone.

Autoloading

The package uses PSR-4 autoloading. After installing via Composer, classes are automatically available:

use WPZylos\Framework\Core\Application;
use WPZylos\Framework\Core\PluginContext;
use WPZylos\Framework\Core\ServiceProvider;

WordPress Integration

This package is designed to work within WordPress plugins. It should be loaded after WordPress is initialized, typically via the plugins_loaded hook:

add_action('plugins_loaded', function () {
    $context = PluginContext::create([...]);
    $app = new Application($context);
    $app->boot();
});

Development Installation

For contributing or development:

git clone https://github.com/KYNetCode/wpzylos-core.git
cd wpzylos-core
composer install
composer test