piotrpress/wordpress-installer

This composer plugin sets installation paths for WordPress core, plugins, mu-plugins, themes and drop-ins outside of vendor directory.

v1.0.0 2022-05-23 21:50 UTC

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 slug
  • wordpress-plugin/{$slug} - /wp-content/plugins/{$slug} where $slug is a desired WordPress plugin slug
  • wordpress-muplugin/{$slug} - /wp-content/mu-plugin/{$slug} where $slug is a desired WordPress mu-plugin slug
  • wordpress-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:

Resources

Check out example implementation in the piotrpress/wordpress package.

Requirements

  • PHP >= 7.4 version.
  • Composer ^2.0 version.

License

MIT