If you need SOAP in your PHP applications, and you have a system which doesn’t currently contain the correct tools, like an AWS EC2 instance you’ve just installed, you could be looking for the simple command you need in order to install PHP soap.
The following Yum command will do just that on Centos / AWS Linux setups:
sudo yum install php-soap
You will need to agree to the installation. If you don’t want to take the extra time to press “yes” the following will do it:
yum install php-soap -y
If the above commands have helped out your day, feel free to leave a pleasant comment below to brighten ours!