From b4cff190a89f8db9165ec5625a9b3f6281ab889c Mon Sep 17 00:00:00 2001 From: Ulrich Eckhardt Date: Thu, 21 Jan 2021 14:33:49 +0100 Subject: [PATCH] Remove dependency on wget from install docs Some people have wget, others have cURL, but we all have PHP. ;) --- doc/faqs/how-to-install-composer-programmatically.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/faqs/how-to-install-composer-programmatically.md b/doc/faqs/how-to-install-composer-programmatically.md index 3b378a5ab..6299b6d40 100644 --- a/doc/faqs/how-to-install-composer-programmatically.md +++ b/doc/faqs/how-to-install-composer-programmatically.md @@ -9,7 +9,7 @@ An alternative is to use this script which only works with UNIX utilities: ```bash #!/bin/sh -EXPECTED_CHECKSUM="$(wget -q -O - https://composer.github.io/installer.sig)" +EXPECTED_CHECKSUM="$(php -r 'copy("https://composer.github.io/installer.sig", "php://stdout");')" php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" ACTUAL_CHECKSUM="$(php -r "echo hash_file('sha384', 'composer-setup.php');")"