Class Guzzle\Parser\Url\UrlParser

InheritanceGuzzle\Parser\Url\UrlParser
ImplementsGuzzle\Parser\Url\UrlParserInterface
Deprecated since version Just use parse_url. UTF-8 characters should be percent encoded anyways.

Parses URLs into parts using PHP's built-in parse_url() function

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$utf8 bool Whether or not to work with UTF-8 strings Guzzle\Parser\Url\UrlParser

Public Methods

Hide inherited methods

MethodDescriptionDefined By
parseUrl() Guzzle\Parser\Url\UrlParser
setUtf8Support() Set whether or not to attempt to handle UTF-8 strings (still WIP) Guzzle\Parser\Url\UrlParser

Property Details

$utf8 protected property

Whether or not to work with UTF-8 strings

protected bool $utf8 false

Method Details

parseUrl() public method

public void parseUrl ( $url )
$url
setUtf8Support() public method

Set whether or not to attempt to handle UTF-8 strings (still WIP)

public void setUtf8Support ( $utf8 )
$utf8 bool

Set to TRUE to handle UTF string