Skip to content

Commit

Permalink
[doc] Installation - recommended Composer instead of tarball
Browse files Browse the repository at this point in the history
  • Loading branch information
bamarni committed Jan 16, 2013
1 parent 2a7d317 commit d5de5e6
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions doc/intro.rst
Expand Up @@ -29,32 +29,10 @@ Twig needs at least **PHP 5.2.4** to run.
Installation
------------

You have multiple ways to install Twig. If you are unsure what to do, go with
the tarball.
You have multiple ways to install Twig.

Installing from the tarball release
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

1. Download the most recent tarball from the `download page`_
2. Unpack the tarball
3. Move the files somewhere in your project

Installing the development version
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

1. Install Subversion or Git
2. For Git: ``git clone git://github.com/fabpot/Twig.git``
3. For Subversion: ``svn co http://svn.twig-project.org/trunk/ twig``

Installing the PEAR package
~~~~~~~~~~~~~~~~~~~~~~~~~~~

1. Install PEAR
2. ``pear channel-discover pear.twig-project.org``
3. ``pear install twig/Twig`` (or ``pear install twig/Twig-beta``)

Installing via Composer
~~~~~~~~~~~~~~~~~~~~~~~
Installing via Composer (recommended)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

1. Install composer in your project:

Expand Down Expand Up @@ -82,6 +60,28 @@ Installing via Composer
If you want to learn more about Composer, the ``composer.json`` file syntax
and its usage, you can read the `online documentation`_.

Installing from the tarball release
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

1. Download the most recent tarball from the `download page`_
2. Unpack the tarball
3. Move the files somewhere in your project

Installing the development version
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

1. Install Subversion or Git
2. For Git: ``git clone git://github.com/fabpot/Twig.git``
3. For Subversion: ``svn co http://svn.twig-project.org/trunk/ twig``

Installing the PEAR package
~~~~~~~~~~~~~~~~~~~~~~~~~~~

1. Install PEAR
2. ``pear channel-discover pear.twig-project.org``
3. ``pear install twig/Twig`` (or ``pear install twig/Twig-beta``)


Installing the C extension
~~~~~~~~~~~~~~~~~~~~~~~~~~

Expand Down

0 comments on commit d5de5e6

Please sign in to comment.