piotrpress / wordpress-installer
This composer plugin sets installation paths for WordPress core, plugins, mu-plugins, themes and drop-ins outside of vendor directory.
Installs: 239
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
Type:composer-plugin
Requires
- php: >=7.4
- composer-plugin-api: ^2.0
This package is not auto-updated.
Last update: 2024-11-20 08:31:52 UTC
README
This composer plugin sets installation paths for WordPress core
, plugins
, mu-plugins
, themes
and drop-ins
outside of vendor directory.
Installation
$ composer require piotrpress/wordpress-installer
Result
Plugin sets installation paths according to package type:
wordpress-core
-/wp-core
wordpress-theme/{$slug}
-/wp-content/themes/{$slug}
where$slug
is a desired WordPress theme slugwordpress-plugin/{$slug}
-/wp-content/plugins/{$slug}
where$slug
is a desired WordPress plugin slugwordpress-muplugin/{$slug}
-/wp-content/mu-plugin/{$slug}
where$slug
is a desired WordPress mu-plugin slugwordpress-dropin/{$slug}
-/wp-content/{$slug}
where$slug
is a desired WordPress drop-in slug
Limitations
Installation paths are fixed. To customize paths, use other plugin instead, for example one of listed installers:
- composer/installers
- oomphinc/composer-installers-extender
- johnpbloch/wordpress-core-installer
- fancyguy/webroot-installer
Resources
Check out example implementation in the piotrpress/wordpress package.
Requirements
- PHP >=
7.4
version. - Composer ^
2.0
version.