Skip to content

Commit 4d7a9d9

Browse files
committed
Merge branch 'master' of github.com:ukko/phpredis-phpdoc
2 parents 042e083 + 141b143 commit 4d7a9d9

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

README.markdown

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,18 @@ Do not forget to declare a variable type $ redis
2121

2222
### Install
2323

24-
* Install redis-server
24+
* Install [redis-server](http://redis.io/download)
2525
* Install [phpredis extension](https://github.com/nicolasff/phpredis)
26-
* Download [phpredis-phpdoc](https://github.com/ukko/phpredis-phpdoc/tarball/master)
26+
* The simpliest way to install and use redisphp-phpdoc is to use Composer, as there is a package on Packagist. Just add this to your project composer.json file :
27+
28+
{
29+
"require": {
30+
"ukko/redisphp-phpdoc": "*"
31+
},
32+
"minimum-stability": "dev"
33+
}
34+
35+
* Or direct download [phpredis-phpdoc](https://github.com/ukko/phpredis-phpdoc/tarball/master)
2736

2837
### Setup in IDE PhpStorm
2938

@@ -38,5 +47,11 @@ Do not forget to declare a variable type $ redis
3847
* Click "Open"
3948
* Click "OK"
4049

41-
### Setup in IDE Eclipse PDT
50+
### Setup in Zend Studio IDE (Eclipse PDT)
51+
52+
* Open "Window" -> "Preferences"
53+
* In preferences dialog open "PHP" -> "PHP Libriaries"
54+
* Click "New" button, in "User library name" enter "Redis", click "OK"
55+
* Select newly created "Redis", library Click "Add external folder", select path to the folder which contains your checkout of phpredis-phpdoc or you can download single "Redis.php" file https://raw.github.com/ukko/phpredis-phpdoc/master/src/Redis.php
56+
* Include your custom library in your project: open "Project" -> "Properties" -> "PHP Include Path", click add library, select "User library", click "Next", check "Redis", click "Finish"
4257

composer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616
"require":{
1717
"php":">=5.3.0"
1818
},
19-
"version": "2.6.0-dev",
20-
"minimum-stability": "dev",
19+
"version": "2.6.0",
2120
"autoload": {
2221
"psr-0": {
2322
"phpredis-phpdoc": "src/"
File renamed without changes.

0 commit comments

Comments
 (0)