Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 1.45 KB

readme.md

File metadata and controls

41 lines (26 loc) · 1.45 KB

WordPress Installer

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