Hi! I wrote the new build process for logging. Keep in mind that the current process is still experimental and can be modified to make it fit into your build process better.
There are two dependancies: PHP runtime and the Twig library.
For PHP, any of these should work fine:
I would not recommend using the 5.2 branch, since it's no longer maintained.
The Twig library is not in freshports, as far as I see. For testing I had it installed via PEAR. I think the easiest way would be to bundle the Twig package with the site code. It has an Apache-compatible licence so it shouldn't be a problem legally. Please say if this is OK with you.
The build process is simple: execute "php build.php". This compiles the sources from /src and dumps the rendered site into /target/site.