phpdotenv icon indicating copy to clipboard operation
phpdotenv copied to clipboard

License compatibility with phpoption

Open mschoettle opened this issue 1 year ago • 0 comments

I am looking through dependencies and their licenses in one of our projects and noticed a potential inconsistency (we directly depend on phpdotenv):

This package is licensed under the BSD-3-Clause license. The dependency phpoption is licensed under Apache 2.0. Similarly, ResultType is licensed under MIT and depends on phpoption as well. (mentioning this here because the package author is also an author of this package)

Based on my understanding regarding license compatibility (I am not a lawyer; so see this graph: https://en.wikipedia.org/wiki/License_compatibility#Compatibility_of_FOSS_licenses) both of these cases are incompatible. Using an Apache 2.0 licensed package would require to at least use Apache 2.0 as well. The other way around would however be possible, e.g., including an MIT-licensed package in an Apache 2.0.

mschoettle avatar Nov 18 '24 17:11 mschoettle