The SimpleXML extension is enabled by default. To disable it, use the --disable-simplexml configure option.
For Linux Ubuntu using PHP 7: sudo apt-get install php7.0-xml
Installing simpleXml using composer: "composer require ext-simplexml" The extension is enabled by default in most distros. You can check the list of php modules using: "php -m"
This XML module is not provided on a default php (v7) install on Debian GNU/Linux stretch (9.3) Add it with: sudo apt-get install php-xml
To install on CentOS and Redhat, run: sudo yum -y install php-xml
Коментарии
For Linux Ubuntu using PHP 7:
sudo apt-get install php7.0-xml
Installing simpleXml using composer:
"composer require ext-simplexml"
The extension is enabled by default in most distros. You can check the list of php modules using:
"php -m"
This XML module is not provided on a default php (v7) install on Debian GNU/Linux stretch (9.3)
Add it with: sudo apt-get install php-xml
To install on CentOS and Redhat, run: sudo yum -y install php-xml