PHP library for parsing and substituting values into a code template