piotrpress / wordpress-composer
This composer plugin uses WordPress.org API to download WordPress core, plugins and themes.
Installs: 175
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 1
Open Issues: 0
Type:composer-plugin
Requires
- php: >=7.4
- composer-plugin-api: ^2.0
README
This composer plugin uses WordPress.org API
to download WordPress core, plugins and themes.
Installation
- Add the plugin as a global composer requirement:
$ composer global require piotrpress/wordpress-composer
- Allow the plugin execution:
$ composer config -g allow-plugins.piotrpress/wordpress-composer true
Example composer.json
file
{ "require": { "wordpress-core/full": "*", "wordpress-plugin/akismet": "*", "wordpress-theme/twentytwentytwo": "*", "piotrpress/wordpress-installer": "^1.0" }, "config": { "allow-plugins": { "piotrpress/wordpress-installer": true } } }
Usage
wordpress-core/{$release}
- where$release
is one of WordPress available release type:full
,no-content
ornew-bundled
wordpress-theme/{$slug}
- where$slug
is a desired WordPress theme slugwordpress-plugin/{$slug}
- where$slug
is a desired WordPress plugin slug
Support
WordPress Composer
sets wordpress-core
, wordpress-theme
and wordpress-plugin
type, appropriately for the right composer packages, so it's compatible with all composer installers supporting this custom types, e.g.:
- piotrpress/wordpress-installer
- 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.