Install php-yaml on Win 10 (or 8.1)
Related to my previous post Install PHP 5.6 on Win 8.1 x64, I needed to work with YAML from PHP. The instructions for how to do this are confusing, at best.Simplified instructions:
- Go to http://pecl.php.net/package/yaml
- Download the zip file for the latest version (as of the time of writing this, 1.2,0). There is a little Windows Icon and the word DLL is linked to the zip.
- Download the 5.6 Thread Safe (TS) x86 version
- Thread Safe
- x86 (32-bit), NOT the x64 (64-bit), since we're running 32-bit PHP
- Copy yaml.dll to C:/dev/php (or wherever you installed PHP)
- Copy php_yaml.dll to C:/dev/php/ext (or the ext directory under your PHP install location)
- Edit C:/dev/php/php.ini
- Add this line:
extension=C:/dev/php/ext/php_yaml.dll - Confirm that it works:
- php --re yaml