PHP package to iterate through various JSON formats