Is there a widely accepted class for dealing with URLs in PHP?
Things like: getting/changing parts of an existing URL (e.g. path, scheme, etc), resolving relative paths from a base URL. Kind of like a two-way parse_url(), encapsulated with a bunch of handy functions.
Does something like this exist?
You’ve got the Net_URL2 package over at PEAR, which appears to have replaced the original Net_URL. I have no first hand experience with it, but I’ll almost always take a PEAR package over ‘random library found on website’.