Summary
Based on version, for example, php81, php82, php83, php84
Details
When using PHP, dependencies are mostly installed using the Composer management tool, and different projects have explicit version dependencies during development. This method also supports dynamic searching by related tools like IntelliJ IDEA.
For example:
Install version 8.4 and its related extensions:
sudo dnf install php84 php84-fileinfo php84-swoole
To run Composer with a specific PHP version:
php84 composer require package