I'm trying to install the WP-CLI tools as described here using Cygwin, which the guide claims is supported.
When doing:
cd /XAMPP/htdocs
curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
php wp-cli.phar --info
It fails with the following error:
PHP Fatal error: Uncaught Error: Class 'Phar' not found in /cygdrive/b/Users/User/Desktop/XAMPP/htdocs/wp-cli.phar:3 Stack trace: #0 {main} thrown in /cygdrive/b/Users/User/Desktop/XAMPP/htdocs/wp-cli.phar on line 3
What's causing this error, and how can I successfully get WP-CLI running under Cygwin?