[doc] Installation - recommended Composer instead of tarball

This commit is contained in:
Bilal Amarni
2013-01-16 14:17:17 +01:00
parent 2a7d317cf9
commit d5de5e6d3b
+25 -25
View File
@@ -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:
@@ -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
~~~~~~~~~~~~~~~~~~~~~~~~~~