To load the SoapClient class, you need to install the libxml and soap extensions.
So check php -i | grep limxml php -i | grep limxml and php -i | grep soap php -i | grep soap to see if they are installed.
For php 7.2 it is necessary to install and restart php / server.
apt-get install libxml php7.2-soap
Then check your php ini again. Ubuntu INI path for conf.
/etc/php/7.2/cli/conf.d/20-soap.ini extension=soap.so
After that, you will be able to run a new object command.
source share