Repository: predictionio-sdk-php Updated Branches: refs/heads/develop 0faa9bc10 -> d6916b7c0
Following the Composer best practices and simplified the installation step(s). Closes #24 Project: http://git-wip-us.apache.org/repos/asf/predictionio-sdk-php/repo Commit: http://git-wip-us.apache.org/repos/asf/predictionio-sdk-php/commit/d6916b7c Tree: http://git-wip-us.apache.org/repos/asf/predictionio-sdk-php/tree/d6916b7c Diff: http://git-wip-us.apache.org/repos/asf/predictionio-sdk-php/diff/d6916b7c Branch: refs/heads/develop Commit: d6916b7c011fd34f1697e488c56f694f68f52f2d Parents: 0faa9bc Author: Jeffrey Cafferata <[email protected]> Authored: Sun Mar 18 17:17:10 2018 -0700 Committer: Donald Szeto <[email protected]> Committed: Sun Mar 18 17:17:56 2018 -0700 ---------------------------------------------------------------------- README.md | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/predictionio-sdk-php/blob/d6916b7c/README.md ---------------------------------------------------------------------- diff --git a/README.md b/README.md index 8f9d38b..d8f60f0 100644 --- a/README.md +++ b/README.md @@ -16,23 +16,11 @@ Note: This SDK only supports Apache PredictionIO version 0.8.2 or higher. The easiest way to install PredictionIO PHP client is to use [Composer](http://getcomposer.org/). -1. Add `predictionio/predictionio` as a dependency in your project's ``composer.json`` file: +1. `predictionio` is available on [Packagist](https://packagist.org) and can be installed using [Composer](https://getcomposer.org/): - { - "require": { - "predictionio/predictionio": "~0.9.0" - } - } + composer require predictionio/predictionio -2. Install Composer: - - curl -sS https://getcomposer.org/installer | php -d detect_unicode=Off - -3. Use Composer to install your dependencies: - - php composer.phar install - -4. Include Composer's autoloader in your PHP code +2. Include Composer's autoloader in your PHP code require_once("vendor/autoload.php");
