support php templates for #133