Browse code

Added statistics aggregation to readme

Niklas Modess authored on 24/05/2014 15:11:39
Showing 1 changed files
... ...
@@ -53,4 +53,16 @@ To get a list of various commits.
53 53
 Given a specific commit hash, you can find information about that commit:
54 54
 
55 55
     $commit = $repository->getCommit('920be98a05');
56
-    print_r($commit);
57 56
\ No newline at end of file
57
+    print_r($commit);
58
+    
59
+### Getting statistics for repository
60
+
61
+Statistics aggregators can be added to the repository:
62
+
63
+    $repository->addStatistics(array(
64
+        new Gitter\Statistics\Contributors,
65
+        new Gitter\Statistics\Date,
66
+        new Gitter\Statistics\Day,
67
+        new Gitter\Statistics\Hour
68
+    ));
69
+    print_r($repository->getStatistics());
58 70
\ No newline at end of file