PHP implementation of the URI.js Library by Rodney Rehm