I get this error even I change the php version to 8.2 or 8.3

Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.1.0".

How to solve this?

    PHP 8.3.6 (cli) (built: Apr 11 2024 15:35:09) (NTS)
    Copyright (c) The PHP Group
    Zend Engine v4.3.6, Copyright (c) Zend Technologies

      try:
      composer -vvv about
      check the top line to see which version of PHP composer is using.

      I myself have to use something along the lines of

      PATH=/path/to/php/8.3/bin:$PATH
      if [ -f ~/.bashrc ]; then
      . ~/.bashrc
      fi
      PATH=/path/to/php/8.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

      then run
      source ~/.bash_profile on login - I'm sure a more logical and better way exists but works for me applies - anyway try composer -vvv about and see if it points you in the right direction

      kishor would be helpful stating the error you get.

      I guess you should use the support of your hosting provider to ask them how to run composer with the right php binary.

      Good luck.