From aafb63776b5be6cb28614b2448e1a8b0098f4782 Mon Sep 17 00:00:00 2001 From: iqre8 <57012516+iqre8@users.noreply.github.com> Date: Tue, 10 Nov 2020 07:36:30 -0300 Subject: [PATCH] Update README.md Make download possible without relying on third party tools like wget/curl. --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 33985901ed..80a0adbbe4 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,11 @@ If you're using PHP_CodeSniffer as part of a team, or you're running it on a [CI The easiest way to get started with PHP_CodeSniffer is to download the Phar files for each of the commands: ``` -# Download using curl +# Download using php +php -r "copy('https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar', 'phpcs');" +php -r "copy('https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar', 'phpcbf');" + +# Or download using curl curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcs.phar curl -OL https://squizlabs.github.io/PHP_CodeSniffer/phpcbf.phar