I have a cakephp project. Let us call it Project Super.
It has its own github repo.
Super has git submodule that pulls from this repo. https://github.com/predominant/TwigView
The issue is that I need to have my own project specific extensions, so I need to create new files in the Lib folder of https://github.com/predominant/TwigView and I need to add require_once statements inside the file View/TwigView.php of https://github.com/predominant/TwigView
I want to maintain the git submodule as much as I can.
I know I can fork the https://github.com/predominant/TwigView and add the project specific extension files and changes.
Super would then have this forked version as git submodule.
However, I am not pleased with that because that means
- it is slightly harder to update the forked version from its upstream
- I need to have 1 forked version per project.
What would be the cleanest, and easily maintainable way to use https://github.com/predominant/TwigView as a git submodule in Project Super and other cakephp projects?