Add composer support and fix getNormalizedURL() bug #20013