Add php code in template so travis ci tests pass