Installing PHP YAML Extension with XAMPP on Windows
With a bit of help from the readers I seem to have narrowed down the steps to accomplish this.
- Download the latest YAML DLL Package
- Unzip the files
- Move the
php_yaml.dll
file toxampp/php/ext
folder - Open your
php.ini
inxampp/php
and add the lineextension=php_yaml.dll
, save and exit - Now move the
yaml.dll
file from the zip folder contents and move it to thexampp/apache/bin
folder - Close and restart your XAMPP Servers
- Load a php script
echo phpinfo();
- Search the string
yaml
on the page. If it says Enabled then your YAML Extension is working.
As of 2018.04.17, Windows 10, Step 5 above is nonsensical: there is no yaml.dll available.
My solution was to copy the php.ini file from the php folder into the location Apache was looking into for its use of php. phpinfo() told me that was c:\windows (which you need admin rights to write into)
Earlier I had just copied php_yaml.dll into the apache dll folder. I have left it there maybe it's part of the solution too.
PS. Thanks &^%* admins for deleting my earlier call for help. THAT didn't help.