From 2a43b4ed306230ea88237925e46e648e9ba2c41a Mon Sep 17 00:00:00 2001 From: Matt Wells Date: Fri, 20 Mar 2015 11:40:26 +0000 Subject: [PATCH] Updated composer install instructions --- README.md | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index bb192bb..47c073c 100644 --- a/README.md +++ b/README.md @@ -12,25 +12,17 @@ This library is compatible with HTML5 file upload library: https://github.com/fl How to get started? -------------- -Download composer https://getcomposer.org/download/. +Setup Composer: https://getcomposer.org/doc/00-intro.md -Clone repository: +Run this command in your project: ``` -git clone https://github.com/flowjs/flow-php-server.git +composer require flowjs/flow-php-server ``` -Go to the cloned directory: -``` -cd flow-php-server -``` -Use composer to download dependencies and autoload PHP classes. -``` -composer install -``` -This will create a vendor directory for you, which contains an autoload.php file. +This will create a vendor directory for you, which contains an autoload.php file. Create a new php file named `upload.php`: ```php -//Path to autoload.php from current location +//Path to autoload.php from current location require_once './vendor/autoload.php'; $config = new \Flow\Config();