How to enforce the php version used by composer? (PHP 5.6 – 8.0)

How to enforce the PHP version used by Composer?

On Smarthost servers, various PHP versions are available, from 5.6 to 8.4, which can be used depending on your needs, including for Composer and other PHP-based applications. Hosting accounts also allow you to manually run any PHP version via SSH. We have prepared a guide that shows how to do this: https://blog.smarthost.eu/how-to-install-wp-cli-on-smarthost-eu-servers


Hosting for WordPress

Speed and performance: NVMe Drives, http/3, multiple cache methods, free data migration, free SSL certificates

Joomla! hosting

Speed ​​and performance: high I/O, lots of RAM, NVMe drives, http/3, free SSL certificates, technical support

PrestaShop hosting

Security and Performance: Full Separation, Anti-Exploit Technology, NVMe Drives, http/3, Redis, Free SSL Certificates

Dedicated servers

When high computing power is required, choose a dedicated server with full administration, in an European server room with the cPanel management panel.

VPS servers

When you need to configure an operating system on our hosting platform, it's a good idea to choose your own VPS with cPanel and root access.

Domains registration

On Smarthost.eu you can register several hundred types of domains from all over the world. Prices are clear and predictable. We are a partner of NASK and EURid

Cookies settings

Your current state

Show details