From 7153ff6c32626a2653775254c2fe923ec4bd8e7f Mon Sep 17 00:00:00 2001 From: Benjamin Steininger Date: Mon, 27 Feb 2012 11:10:31 +0100 Subject: [PATCH] Installing twig via composer --- doc/intro.rst | 22 ++++++++++++++++++++++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/doc/intro.rst b/doc/intro.rst index 94c0187..ee5307e 100644 --- a/doc/intro.rst +++ b/doc/intro.rst @@ -53,6 +53,28 @@ Installing the PEAR package 2. ``pear channel-discover pear.twig-project.org`` 3. ``pear install twig/Twig`` (or ``pear install twig/Twig-beta``) +Installing via Composer +~~~~~~~~~~~~~~~~~~~~~~~ + +1. Install composer in your project + +``curl -s http://getcomposer.org/installer | php`` + +2. create composer.json in your project root with: + +.. code-block:: javascript + + { + "require": { + "twig": "1.6.0" + } + } + + +3. Install twig via composer + +``php composer.phar install`` + Installing the C extension ~~~~~~~~~~~~~~~~~~~~~~~~~~ -- 1.7.2.5