Unable to install composer globally on Cygwin
<p>When I run the this command 'php -r "readfile('<a href="https://getcomposer.org/installer" rel="nofollow">https://getcomposer.org/installer</a>');" | php' on Cygwin terminal. The following errors have been triggered on the terminal:</p>

<pre><code>Some settings on your machine make Composer unable to work properly.
Make sure that you fix the issues listed below and run this script again:

The json extension is missing.
Install it or recompile php without --disable-json

The phar extension is missing. 
Install it or recompile php without --disable-phar

The iconv OR mbstring extension is required and both are missing.
Install either of them or recompile php without --disable-iconv
</code></pre>

<p>However, all these extensions are enabled in php.ini file. I am using XAMPP.</p>