From d2eab1b0a5ba72713a7a549516ef3befb1c4f53b Mon Sep 17 00:00:00 2001 From: Erik van Velzen Date: Tue, 4 Oct 2022 18:11:41 +0200 Subject: [PATCH] readme: simplify composer command (#42) I found a shorter way to add a composer repository to a project. This also makes the command work in Windows OS. --- README.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index c2b8088..e965247 100644 --- a/README.md +++ b/README.md @@ -35,13 +35,10 @@ extension=ffi ffi.enable=true ``` -3. Install using composer. Copy and run: +3. Add it as a requirement to your project's composer.json to install. Run: ``` -composer config repositories.storj/uplink '{ - "type": "composer", - "url": "https://raw.githubusercontent.com/storj-thirdparty/uplink-php/main/" -}' && +composer config repositories.storj/uplink composer https://raw.githubusercontent.com/storj-thirdparty/uplink-php/main/ composer require storj/uplink ```