Recommend this page to a friend! |
Download .zip |
Info | View files (4) | Download .zip | Reputation | Support forum (2) | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2011-05-05 (5 years ago) | Not enough user ratings | Total: 780 | All time: 4,176 This week: 872 |
Version | License | PHP version | Categories | |||
url-normalizer 1.0.0 | BSD License | 5.0 | PHP 5, Text processing |
Description | Author | ||||||||||||||||
This class can be used to normalize URLs according to RFC 3986. Innovation Award
|
|
Syntax based normalization of URI's This normalises URI's based on the specification RFC 3986 http://www.apps.ietf.org/rfc/rfc3986.html Example usage: <code> require_once 'URLNormalizer.php'; $url = 'eXAMPLE://a/./b/../b/%63/%7bfoo%7d'; $un = new URLNormalizer(); $un->setUrl( $url ); echo $un->normalize(); // result: "example://a/b/c/%7Bfoo%7D" </code> TODO: Add further scheme-based normalization steps, as detailed in section 6.2.3 of the RFC. |
Files |
File | Role | Description |
---|---|---|
URLNormalizer.php | Class | Main class |
URLNormalizerTest.php | Test | Test class |
test-client.php | Example | Example script |
README | Doc. | README |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
User Comments (2) | ||||||||
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.