I am using twig 1.2 in my personal framework, after changing php version to 7, I got an warning that twig-autoloader is deprecated. I want to use twig 3 instead but I cant find a source to download it. I am using PHP 7.3 with WAMP 3.2 but project do using on Linux host when finished.my questions are:
thank you
You can install twig via composer.
composer require twig/twig
If you have twig already installed, via composer try
composer update
to update all packages or check the composer.json
file and change the dependency manually. Afterwards run
composer install
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.