0

I'm trying to upgrade Twig 1.13.2-DEV to 3.x but don't know how to do that as on their Website not clearly mentioned and they suggest to ask question on StackOverflow :)

I used Twig only with Symfony framework not with Custom PHP website, Right now I can see two directories in server

  1. Twig
  2. Twig-extensions

And inside /Twig/lib/Twig/Environment.php it display me the version

const VERSION = '1.13.2-DEV';

Can someone have idea how to upgrade Twig?

My project is not using composer.json but inside Twig folder I have this compsoer.json

"name": "twig/twig", "type": "library", "description": "Twig, the flexible, fast, and secure template language for PHP", "keywords": ["templating"], "homepage": "http://twig.sensiolabs.org", "license": "BSD-3-Clause", "authors": [ { "name": "Fabien Potencier", "email": "fabien@symfony.com" }, { "name": "Armin Ronacher", "email": "armin.ronacher@active-4.com" } ], "require": { "php": ">=5.2.4" }, "autoload": { "psr-0" : { "Twig_" : "lib/" } }, "extra": { "branch-alias": { "dev-master": "1.13-dev" } } }

Muhammad Shahzad
  • 9,340
  • 21
  • 86
  • 130

0 Answers0