I have downloaded .zip for zendskeleton and it is having composer.phar and composer.json. when I run below given command in Git CLI from zendskeleton folder it gives some error.
php composer.phar self-update
Error:
$ php composer.phar self-update
[Composer\Downloader\TransportException] The "https://getcomposer.org/version" file could not be downloaded: failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection fai led because connected host has failed to respond.
self-update
php composer.phar install
Error:
$ php composer.phar install Warning: This development build of composer is over 30 days old. It is recommend ed to update it by running "composer.phar self-update" to get the latest version . Loading composer repositories with package information
[Composer\Downloader\TransportException] The "https://packagist.org/packages.json" file could not be downloaded: fai led to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-c ustom-installers] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [-o|--opt imize-autoloader]
Edit: with php composer.phar update
$ php composer.phar update Warning: This development build of composer is over 30 days old. It is recommend ed to update it by running "composer.phar self-update" to get the latest version . Loading composer repositories with package information
[Composer\Downloader\TransportException] The "https://packagist.org/packages.json" file could not be downloaded: fai led to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
update [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--lock] [--no-custom-installers] [--no-scripts] [--no-progress] [-v|vv|vvv|--verbose] [ -o|--optimize-autoloader] [packages1] ... [packagesN]