You have multiple ways to install Twig.
Install Composer and run the following command to get the latest version:
composer require twig/twig:~2.0
git clone git://github.com/twigphp/Twig.git
© 2009–2017 by the Twig Team
Licensed under the three clause BSD license.
The Twig logo is © 2010–2017 SensioLabs
https://twig.sensiolabs.org/doc/2.x/installation.html