Closed mcaskill closed 2 years ago
Add a provide section with wordpress/core-implementation as a virtual package to all builds of WordPress.
provide
wordpress/core-implementation
Example:
"provide": { "wordpress/core-implementation": "5.4.1" }
This can be useful for WordPress plugins, themes, and libraries that are managed by Composer.
A library, such as johnbillion/extended-cpts, could list the WordPress versions that conflict that package:
"conflict": { "wordpress/core-implementation": "<4.8" }
A type of boilerplate could even require WordPress:
"require": { "php": ">=7.1", "wordpress/core-implementation": ">=5.0" }
John Bloch implemented this feature a few years ago (johnpbloch/build-wp#3)
Closing in favour of #22
Summary
Add a
provide
section withwordpress/core-implementation
as a virtual package to all builds of WordPress.Example:
Motivation
This can be useful for WordPress plugins, themes, and libraries that are managed by Composer.
A library, such as johnbillion/extended-cpts, could list the WordPress versions that conflict that package:
A type of boilerplate could even require WordPress:
Additional context
John Bloch implemented this feature a few years ago (johnpbloch/build-wp#3)