Twig has its own PEAR channel
Since the release of Twig as an Open-Source project with its own dedicated website, many people tried it and suggested me some enhancements. One of them was the possibility to install Twig with the PEAR command line.
That’s now possible. First, you need to register the Twig PEAR channel:
$ pear channel-discover pear.twig-project.org
Then, install Twig with the following command:
$ pear install twig/Twig-beta
Enjoy!