2017 © Pedro Peláez
 

library urihelper

A general URI helper class for PHP

image

enrise/urihelper

A general URI helper class for PHP

  • Tuesday, April 21, 2015
  • by RobQuistNL
  • Repository
  • 8 Watchers
  • 9 Stars
  • 12,743 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 5 Versions
  • 9 % Grown

The README.md

UriHelper

Build Status, (*1)


A simple URI helper class with implementations of the following RFC's / STD's: - RFC-3986 - STD-66, (*2)

Usage

$uri = new \Enrise\Uri('http://usr:pss@example.com:81/mypath/myfile.html?a=b&b[]=2&b[]=3#myfragment');
echo $uri->getScheme(); // http
echo $uri->getUser(); // usr
echo $uri->getPass(); // pss
echo $uri->getHost(); // example.com
echo $uri->getPort(); // 81
echo $uri->getPath(); // /mypath/myfile.html
echo $uri->getQuery(); // a=b&b[]=2&b[]=3
echo $uri->getFragment(); // myfragment
echo $uri->isSchemeless(); // false
echo $uri->isRelative(); // false

$uri->setScheme('scheme:child:scheme.VALIDscheme123:');
$uri->setPort(null);

echo $uri->getUri(); // scheme:child:scheme.VALIDscheme123:usr:pss@example.com/mypath/myfile.html?a=b&b[]=2&b[]=3#myfragment
use \Enrise\Uri;

$uri = new Uri('/relative/url.html');
echo $uri->getScheme(); // null
echo $uri->getHost(); // null
echo $uri->getPath(); // /relative/url.html
echo $uri->isSchemeless(); // true
echo $uri->isRelative(); // true

The Versions

21/04 2015

dev-master

9999999-dev https://github.com/Enrise/UriHelper

A general URI helper class for PHP

  Sources   Download

Apache 2.0

The Requires

  • php >=5.4

 

The Development Requires

types collections

21/04 2015

dev-develop

dev-develop https://github.com/Enrise/UriHelper

A general URI helper class for PHP

  Sources   Download

Apache 2.0

The Requires

  • php >=5.4

 

The Development Requires

types collections

21/04 2015

1.0.2

1.0.2.0 https://github.com/Enrise/UriHelper

A general URI helper class for PHP

  Sources   Download

Apache 2.0

The Requires

  • php >=5.4

 

The Development Requires

types collections

21/04 2015

1.0.1

1.0.1.0 https://github.com/Enrise/UriHelper

A general URI helper class for PHP

  Sources   Download

Apache 2.0

The Requires

  • php >=5.4

 

The Development Requires

types collections

21/04 2015

1.0.0

1.0.0.0 https://github.com/Enrise/UriHelper

A general URI helper class for PHP

  Sources   Download

Apache 2.0

The Requires

  • php >=5.4

 

The Development Requires

types collections