“Class ‘Phar’ not found” error setting up WP-CLI with Cygwin
You are missing the Phar extension or it’s not enabled. Which version of PHP are you actually running? Check it with php –version. The Phar extension is bundled with PHP as of PHP version 5.3.0, and enabled by default. See https://www.php.net/manual/en/phar.installation.php. Your best bet is to upgrade PHP to at least PHP 7.1. Alternatively follow … Read more