add php method snippet