mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-11 18:06:46 +00:00
Installing twig via composer
This commit is contained in:
@@ -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
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
||||
Reference in New Issue
Block a user