I did a fresh install of wampserver 2.5 64bit on windows 7 64bit with php 5.5.12. After that, I appendend php path to the window's PATH environment variable.
Then i installed composer using the installer found at the official site.
When i try to run any command, i get a host error, for example:
composer create-project --prefer-dist -s dev SOMEPACKAGE
[Composer\Downloader\TransportException] The "https://packagist.org/packages.json" file could not be downloaded: php_network_getaddresses: getaddrinfo failed: Host sconosciuto. failed to open stream: php_network_getaddresses: getaddrinfo failed: Host sconosciuto.
composer diagnose
Checking platform settings: FAIL The xdebug extension is loaded, this can slow down Composer a little. Disabling it when using Composer is recommended, but should not cause issues beyond slowness. Checking git settings: OK Checking http connectivity: FAIL [Composer\Downloader\TransportException] The "https://packagist.org/packages.json" file could not be downloaded: php_network_getaddresses: getaddrinfo failed: Host sconosciuto. failed to open stream: php_network_getaddresses: getaddrinfo failed: Host sconosciuto. Checking disk free space: OK
Host sconosciuto means "Host not known" Did someone know how can i get composer work? I'm not behind a proxy and my hosts file only has one record: 127.0.0.1 localhost
Thank you