mirror of
https://github.com/twigphp/Twig.git
synced 2026-11-11 21:06:21 +00:00
166922bcfe
This PR was merged into the 2.x branch.
Discussion
----------
removed remaining mentions of the C extension
Commits
-------
57ebf00 removed remaining mentions of the C extension
35 lines
907 B
ReStructuredText
35 lines
907 B
ReStructuredText
Installation
|
|
============
|
|
|
|
You have multiple ways to install Twig.
|
|
|
|
Installing the Twig PHP package
|
|
-------------------------------
|
|
|
|
Installing via Composer (recommended)
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
Install `Composer`_ and run the following command to get the latest version:
|
|
|
|
.. code-block:: bash
|
|
|
|
composer require twig/twig:~2.0
|
|
|
|
Installing from the tarball release
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
1. Download the most recent tarball from the `download page`_
|
|
2. Verify the integrity of the tarball http://fabien.potencier.org/article/73/signing-project-releases
|
|
3. Unpack the tarball
|
|
4. Move the files somewhere in your project
|
|
|
|
Installing the development version
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
.. code-block:: bash
|
|
|
|
git clone git://github.com/twigphp/Twig.git
|
|
|
|
.. _`download page`: https://github.com/twigphp/Twig/tags
|
|
.. _`Composer`: https://getcomposer.org/download/
|