add class snippet for php