Browse code

Installing twig via composer

Benjamin Steininger authored on 27/02/2012 10:10:31
Showing 1 changed files
... ...
@@ -53,6 +53,28 @@ Installing the PEAR package
53 53
 2. ``pear channel-discover pear.twig-project.org``
54 54
 3. ``pear install twig/Twig`` (or ``pear install twig/Twig-beta``)
55 55
 
56
+Installing via Composer
57
+~~~~~~~~~~~~~~~~~~~~~~~
58
+
59
+1. Install composer in your project
60
+
61
+``curl -s http://getcomposer.org/installer | php``
62
+
63
+2. create composer.json in your project root with:
64
+
65
+.. code-block:: javascript
66
+
67
+    {
68
+        "require": {
69
+            "twig": "1.6.0"
70
+        }
71
+    }
72
+
73
+
74
+3. Install twig via composer 
75
+
76
+``php composer.phar install``
77
+
56 78
 Installing the C extension
57 79
 ~~~~~~~~~~~~~~~~~~~~~~~~~~
58 80