added template parameter to php settings writer