How klyp/wordpress-core-installer works
This is a Composer plugin that installs packages of type wordpress-core outside vendor/. The workflow is: Composer activates the plugin, the plugin registers an installer, and Composer delegates core package operations to it. The installer chooses a directory from the root project’s configuration, checks that it is safe and non-overlapping, then delegates installation, update, or removal to Composer’s library installer. The sampled source supports the registration and validation flow; README statements establish the user-facing install behavior.
Main entry points: Installer.php Core installer · Plugin.php Plugin
Components 9
Plugin registration
- Plugin
src/Plugin.php
Core installation
- Core installer
src/Installer.php - Directory safety checks
src/Installer.php - Library installer
Other components
- Composer
- Root project config
- wordpress-core package
- Installation manager
- Project filesystem
Connections 9
- Composer → Plugin: activates
- Plugin → Installation manager: registers installer
src/Plugin.php - Installation manager → Core installer: dispatches operations
- wordpress-core package → Core installer: install target
- Core installer → Root project config: reads directory setting
README.md - Core installer → Directory safety checks: validates path
src/Installer.php - Directory safety checks → Project filesystem: checks directories
src/Installer.php - Core installer → Library installer: delegates operations
src/Installer.php - Composer → Project filesystem: installs core
README.md