Twig and HMVC Integration for Code Igniter 3.1.10
PHP version 7 or newer. Twig 2.6.2 or later.
root/
└── application/
└── module/
└── welcome/
└── controllers
└── Welcome.php
└── models
└── Model.php
└── views
└── welcome.twig
$ cd /to/path/root/codeigniter
$ composer require adxio/twig-hmvc
For installation following this command
$ php vendor/adxio/twig-hmvc/install.php
And then you must change owner of folder cache
$ sudo chown www-data:www-data application/cache