2017 © Pedro Peláez
 

library uri-resolver

URI Reference Resolution

image

tkr2f/uri-resolver

URI Reference Resolution

  • Wednesday, November 16, 2016
  • by tkr2f
  • Repository
  • 1 Watchers
  • 2 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

UriResolver

It is implemented based on RFC 3986. Resolve URI reference., (*1)

The pattern of URI that can be resolved is based on RFC 3986, but if you want to know more concretely, look at the test case., (*2)

Usage

For Static call:, (*3)

UriResolverFactory::get()->resolve('http://a/b/c/d;p?q', '../../../g'); //return http://a/g

For instance:, (*4)

(You can use it when injecting instances with DI container etc.), (*5)

$uriResolver = new Tkr2f\UriResolver\UriResolver();
$uriResolver->resolve('http://a/b/c/d;p?q', '../../../g'); //return http://a/g

Note

This implementation relies on PHP's "parse_url" function., (*6)

In PHP 7.1, the behavior of "parse_url" function has been changed., (*7)

In the environment of PHP 7.1, it may not work., (*8)

The Versions

16/11 2016

dev-master

9999999-dev

URI Reference Resolution

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by Takashi Iwata

16/11 2016

1.0.2

1.0.2.0

URI Reference Resolution

  Sources   Download

MIT

The Requires

  • php >=5.5

 

The Development Requires

by Takashi Iwata

04/11 2016

1.0.1

1.0.1.0

URI Reference Resolution

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Takashi Iwata

02/11 2016

1.0.0

1.0.0.0

URI Reference Resolution

  Sources   Download

MIT

The Requires

  • php >=5.6

 

The Development Requires

by Takashi Iwata