Twig template parser for CodeIgniter 3.xx+ (supports themes and HMVC)
Place the Twig into the application/third_party folder or adjust the location in application/libraries/Twig.php
Load the library
$this->load->library('twig');
Output a view
$this->twig->render('template', $data);
Change a theme
$this->twig->setTheme('themename');
Configuration varibles are stored in application/config/twig.php