troydavisson / PHRETS

PHP client library for interacting with a RETS server to pull real estate listings, photos and other data made available from an MLS system
http://troda.com
MIT License
450 stars 235 forks source link

Curious why Bulletin is UPPERCASING key names? #270

Closed ConnectGrid closed 4 years ago

ConnectGrid commented 4 years ago

The RETS specification specifically defines lower-cased response headers for the bulletin:

image

But PHRETS is determined to UPPERCASE these keys. Shouldn't such a decision be made by the implementor? PHP can easily handle lowercased and hyphened array keys, so it's puzzling why this decision would be made. Any deviation from the spec only makes the job of implementors more difficult.

ConnectGrid commented 4 years ago

Seems that XML responses in RETS tend to have uppercased keys, so I suppose this is just a normalization.