PrestaShop 9 minimum PHP version will be PHP8.1
The project moves forward and drops obsolete PHP versions
develop branch contains the source code that will give birth to PrestaShop 9. This is the future of PrestaShop: it will be released either at the end of the year 2023 or at the beginning of the year 2024 and must carry on the ambition of the project for 2024. This major version must also embrace the change in the PHP ecosystem, and consequently, it must drop the support of obsolete PHP versions.
The PHP ecosystem is moving forward
As of today, the 12th of May 2023, there are only two officially supported versions of PHP: PHP8.1, which will be supported until November 2023, and PHP8.2, whose support ends on December 2024. PHP8.0 has already reached the security support phase, which ends on November 2023.
Many open source PHP projects have already left PHP8.0 behind. For example, Symfony 6 and Drupal 10 minimum PHP versions are PHP8.1.0.
The PHP ecosystem is moving swiftly, and open source projects are taking the pace.
Our choice for PrestaShop 9
The project team has been thinking about PrestaShop 9 PHP support for a while. We know plenty of users continue to use PHP7.x versions or PHP8.0, and we know upgrading PHP can be tedious. However, after careful consideration and asking the community, we have finally chosen to drop the support of PHP versions older than PHP8.1 in PrestaShop 9.
We are bumping the minimum required PHP version for PrestaShop 9 to PHP8.1. This means that PrestaShop 9.0.0 will be compatible with PHP8.1 and higher.
This choice is driven by multiple reasons:
PrestaShop does rely on Composer dependencies, and some of these dependencies have chosen, in the latest released versions, to drop the support of PHP8.0 and lower. Earlier versions do support PHP8.0 but are not maintained anymore. We cannot use these earlier versions without putting the software at risk. In order to be able to use safe and maintained dependencies, the bump is necessary.
Support of PHP7.x versions prevents the project from benefitting from the latest PHP language improvements. If we want the code to be compatible with both PHP7 and PHP8, we have to use language features that exist in both versions. Now, contributions against the
developbranch can use features introduced in PHP8.1 (and even features introduced in PHP8.0).
We are aware the project acts as a pioneer in the PrestaShop ecosystem: by moving ahead, we want to show a path forward and motivate PrestaShop users to upgrade to the latest PHP versions, which will make the whole ecosystem more secure. Outdated PHP versions being used on servers is a security risk.