agilo / wp-package-installer
Installs: 866
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 0
Open Issues: 0
Type:composer-plugin
pkg:composer/agilo/wp-package-installer
Requires
- php: ^7.2 || ^8.0
- composer-plugin-api: ^1.0 || ^2.0
Requires (Dev)
- composer/composer: ^1.0 || ^2.0
This package is auto-updated.
Last update: 2025-10-14 17:03:22 UTC
README
(WIP) Enables installing WP plugins via Composer 2 (or Composer 1) inside johnpbloch/wordpress. Replaces drupal-composer/preserve-paths.
- PHP 7.2 - 8.3 is supported
- Composer 1 & 2 is supported
Installation / Usage
mkdir your-project && cd your-projectcomposer init- Add the following to your
composer.jsonextra section:
{
"extra": {
"wordpress-install-dir": "public",
"installer-paths": {
"vendor-wp/wp-content/plugins/{$name}/": ["type:wordpress-plugin"],
"vendor-wp/wp-content/themes/{$name}/": ["type:wordpress-theme"],
"vendor-wp/wp-content/mu-plugins/{$name}/": ["type:wordpress-muplugin"],
"vendor-wp/wp-content/{$name}/": ["type:wordpress-dropin"]
},
"agilo-wp-package-installer": {
"sources": {
"third-party": {
"src": "vendor-wp",
"dest": "public",
"mode": "symlink"
}
}
}
}
}
composer require agilo/wp-package-installercomposer require johnpbloch/wordpress
Contributing
Formatting code
- Run
composer install --working-dir=tools/php-cs-fixer - Run
./tools/php-cs-fixer/vendor/bin/php-cs-fixer fix
Running tests
- Run
composer install --working-dir=tools/phpunit - Run
./tools/phpunit/vendor/bin/phpunit