We work on a PHP project which has plugins. Our plugin includes one open source class.
Another plugin uses this same class.
PHP will throw "Can not re-declare class" error if both plugins include a same class.
We can not to ask if class_exists because we want to use our class file as the other plugin might use an older or newer version.
We also do not want to rename the class as we want to keep the class file easily upgradeable to a newer version later.
We can't change the other plugin so is there anything we can do when including this file to avoid the error?