From ad502da7a66d4a063cb3e906dc4e590e5e8cfd5c Mon Sep 17 00:00:00 2001 From: Dimitar Dinchev Date: Tue, 27 Jan 2015 21:55:31 +0200 Subject: [PATCH] Simplified installation instructions. --- README.md | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/README.md b/README.md index 4a90b57..2db7884 100644 --- a/README.md +++ b/README.md @@ -12,32 +12,10 @@ It was created in attempt to address the following limitations of kengos' Factor Install -------- -yii-factory-girl is installed most easily via [Composer](https://getcomposer.org/). +yii-factory-girl is installed most easily via [Composer](https://getcomposer.org/). Use the following command to install the latest `1.x.x` version. Remove the `--dev` flag if you plan to run tests on environment where `require-dev` composer packages are not installed. -If you don't already have composer support in your Yii project just follow the steps. - -* Install `composer` -* Init `composer` in your project -```shell -cd protected/ -composer init -``` -* Add `yii-factory-girl` to the `require-dev` part of the newly created `protected/composer.json`. Example `composer.json` for Yii1.1 project might look just like this: ``` -{ - "require": { - "php": ">=5.3.0", - "yiisoft/yii": "~1.1", - }, - "require-dev": { - "phpunit/phpunit": "~3.7", - "phpunit/dbunit": ">=1.2", - "phpunit/php-invoker": ">=1.1", - "phpunit/phpunit-selenium": ">=1.2", - "phpunit/phpunit-story": ">=1.0", - "ddinchev/yii-factory-girl": "dev-master" - } -} +php composer.phar require --dev --prefer-dist ddinchev/yii-factory-girl:~1.0.0 ``` Usage