--- layout: homepage --- # Features ## Parsing URI The League URI Parser parses any given URI according to RFC3986 rules ~~~php 'http', // 'user' => null, // 'pass' => null, // 'host' => 'foo.com', // 'port' => null, // 'path' => '', // 'query' => '@bar.com/', // 'fragment' => null, //); ~~~ ## Normalizing URI League URI objects normalize the URI string according to RFC3986/RFC3987 non destructive rules. ~~~php getPublicSuffix(); //display 'co.uk' echo $host->getRegisterableDomain(); //display 'example.co.uk' echo $host->getSubdomain(); //display 'www' $host->isPublicSuffixValid(); //return a boolean 'true' in this example ~~~