Add php folding support