Enabling php 8.x CLI and composer

Please Help enable php 8.x CLI and composer

Hello @Santos,

To enable PHP 8.x CLI and use Composer, follow these steps:

1. Install PHP 8.x

  • Windows: Download PHP 8.x from php.net and add it to your system PATH.

  • Linux (Ubuntu/Debian):

sudo apt update
sudo apt install php8.1-cli php8.1-mbstring php8.1-xml php8.1-curl

2. Verify PHP version:

php -v

3. Install Composer (if not installed):

  • Windows: Download Composer and follow the installer.

  • Linux:

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php composer-setup.php
sudo mv composer.phar /usr/local/bin/composer

4. Verify Composer version:

composer -V

After this, PHP 8.x will be active in the CLI and Composer will use it automatically.

If you see an older PHP version, make sure the PATH points to PHP 8.x.

If the issue still persist, feel free to share more information.

Best regards,