[feature/twig] PHP token support

PHPBB3-11598