openapi-php-sdk icon indicating copy to clipboard operation
openapi-php-sdk copied to clipboard

WordPress: SDK autoload conflict with other Composer packages

Open francescobianco opened this issue 1 year ago • 0 comments

Labels: bug, wordpress, composer Context: WordPress plugin development with multiple Composer autoloaders

Description: Including the Openapi SDK inside a custom plugin causes class autoload conflicts when other plugins also use Composer. Fatal error: "Cannot redeclare class Openapi\Client\ApiException".

Expected: Namespace isolation or PHAR distribution with unique class prefix.

Impact: Prevents use of Openapi SDK in WordPress plugins or WooCommerce integrations.

francescobianco avatar Nov 09 '25 16:11 francescobianco