Simple mapper for marshalling/unmarshalling php objects