PHP library including template engine