Spyderserve Web Development
Make sure the EPEL repository is installed:
sudo yum install epel-release yum-utils sudo yum install http://rpms.remirepo.net/enterprise/remi-release-7.rpm
Enable PHP 7.3:
sudo yum-config-manager --enable remi-php73
Install the PHP modules that you need:
yum install php php-common php-cli php-gd php-ldap php-mbstring php-mcrypt php-mysqlnd php-pdo php-pear php-process php-soap php-xml
That’s it!
Source: https://linuxize.com/post/install-php-7-on-centos-7/