Uniform Resource Identifier (URI) reference class

Released 7 years ago , Last update 7 years ago

Represents a Uniform Resource Identifier (URI) reference.

Aside from some minor deviations noted below, an instance of this class represents a URI reference as defined by RFC 2396: Uniform Resource Identifiers (URI): Generic Syntax, amended by RFC 2732: Format for Literal IPv6 Addresses in URLs.

This class provides constructor for creating URI instances from their string forms, methods for accessing the various components of an instance, and methods for normalizing and resolving URI instances.

Instances of this class are immutable.

Class supports all URI schemas:

file:///foo/bar
http://example.com
/file/page.html
page2.html
mailto:user@example.com

Can be used to resolve one URI with another, get full info about URI, build new URI related to another and so on.

Class can be used to normalize "dots" in URIs too.

Class is fully compliant to RFC 2396 and RFC 2732 specs and has full support of UTF-8 without external libs

Pricing

14 day 14-day money-back guarantee

$4.99

Personal License

  • Perpetual license

  • 1 site, unlimited servers

  • No distribution (hosted use only)

  • Commercial use

Usage example

You can use this class to get info about some URI:

$uri = new Uri('http://example.com/page.html');
$uri->isAbsolute(); // true
$uri->isOpaque(); // false
$uri->getPath(); // /page.html

Resolve one URI with another:

$uri = new Uri('http://example.com/page.html');
$uri2 = $uri->resolve(new Uri('page2.html')); // http://example.com/page2.html

Class supports all URI types:

$uri = new Uri('http://google.com');
$uri = new Uri('page.html');
$uri = new Uri('mailto:user@example.com');
2 licenses, starting from From » $4.99 View Licenses

Get A Quote

What do you need?
  • Custom development
  • Integration
  • Customization / Reskinning
  • Consultation
When do you need it?
  • Soon
  • Next week
  • Next month
  • Anytime

Thanks for getting in touch!

Your quote details have been received and we'll get back to you soon.


Or enter your name and Email
No comments have been posted yet.