typo, parameter and type fixes
[mdref/mdref-pq] / pq.md
diff --git a/pq.md b/pq.md
index 485daeedfacc67e4554b2f59365276ea0f84cdb1..25ad2230c66c4e58845773996934918f419a2acb 100644 (file)
--- a/pq.md
+++ b/pq.md
@@ -11,5 +11,33 @@ This is a modern binding to the mature [libpq](http://www.postgresql.org/docs/cu
 * Fetching simple [multi-dimensional array maps](pq/Result/map).
 * Working [Gateway implementation](https://bitbucket.org/m6w6/pq-gateway).
 
-> ***NOTE:***  
-  This documentation is work in progress.
+## Installation:
+
+This extension is hosted at [PECL](http://pecl.php.net) and can be installed with [PEAR](http://pear.php.net)'s pecl command:
+
+       # pecl install pq
+
+### PHARext
+
+Watch out for [PECL replicates](https://replicator.pharext.org?pq)
+and pharext packages attached to [releases](https://github.com/m6w6/ext-pq/releases).
+
+### Checkout
+
+       git clone github.com:m6w6/ext-pq
+       cd ext-pq
+       /path/to/phpize
+       ./configure --with-php-config=/path/to/php-config
+       make
+       sudo make install
+
+## Dependencies:
+
+This extension unconditionally depends on the pre-loaded presence of the following PHP extensions:
+
+* raphf
+* spl
+
+It optionally depends on the following extensions:
+
+* json