Skip to content

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

License

Notifications You must be signed in to change notification settings

PiotrPress/wordpress-installer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages