I'm trying to release my extension.
In 'Extension Details' I upload my zip package (in my composer.json file I have
"php": "~5.5.0|~5.6.0|~7.0.0"
) and choose Community Edition 2.1
When I click on submit button I receive this error message: "Your extension requires PHP version (~5.5.0|~5.6.0|~7.0.0) which is not supported by selected Magento edition".
Yesterday I uploaded an extension with the same required package in composer.json file
"php": "~5.5.0|~5.6.0|~7.0.0"
and all worked fine.
What is going on?
Solved! Go to Solution.
Magento 2.1.x supports PHP starting from 5.6 version. In the requirement you have in composer.json PHP version starts from 5.5. It will be good to update your module's minimum version to be 5.6.
"php": "~5.6.5|7.0.2|7.0.4|~7.0.6",
Hope it helps.
We add this into composer.json file but there reflect error as
'Your extension requires PHP version (~5.6.0|7.0.2|~7.0.6) which is not supported by selected Magento edition.'
"require": {
"php": "~5.6.0|7.0.2|~7.0.6"
},
How to solve this.
find any solution?
Magento 2.1.x supports PHP starting from 5.6 version. In the requirement you have in composer.json PHP version starts from 5.5. It will be good to update your module's minimum version to be 5.6.
"php": "~5.6.5|7.0.2|7.0.4|~7.0.6",
Hope it helps.
Still same error. Any updates ?
Can you please share full content of your composer.json file?
Now it's working fine, we have to update PHP version like
"php": "~5.6.5|7.0.2|7.0.6|~7.0.6"
Thank you Max.
It solved my issue.
Answer from Magento:
M 2.0 —> "~5.5.22|~5.6.0|7.0.2|~7.0.6”
M 2.1 —> "~5.6.5|7.0.2|7.0.4|~7.0.6”
Extensions for Magento 2.0 and Magento 2.1 (supports both versions):
M 2.0 and 2.1 —> "~5.5.22|~5.6.0|7.0.2|7.0.4|~7.0.6"
I'm facing the same issue. This last solution still does not work for me.
(For M2.0, 2.1)
Error:
Your extension requires PHP version (~5.5.22|~5.6.0|7.0.2|7.0.4|~7.0.6) which is not supported by selected Magento edition.