Skip to content
This repository has been archived by the owner on Sep 14, 2020. It is now read-only.

Commit

Permalink
Simplified installation instructions.
Browse files Browse the repository at this point in the history
  • Loading branch information
ddinchev committed Jan 27, 2015
1 parent ecd986e commit ad502da
Showing 1 changed file with 2 additions and 24 deletions.
26 changes: 2 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ad502da

Please sign in to comment.