Alpha ZealPHP is early-stage and under active development. APIs may change between minor versions until v1.0. Feedback and bug reports welcome on GitHub.
API Index — Namespaces, Packages, Reports, Indices

UriFactory
in package
implements UriFactoryInterface

PSR-17 UriFactoryInterface implementation backed by OpenSwoole\Core\Psr\Uri.

Registered with the PSR-17 container so ZealPHP's middleware stack and internal helpers can create UriInterface instances without depending on a third-party HTTP factory library.

Table of Contents

Interfaces

UriFactoryInterface

Methods

createUri()  : UriInterface
Create a new UriInterface instance from a URI string.

Methods

createUri()

Create a new UriInterface instance from a URI string.

public createUri([string $uri = '' ]) : UriInterface

An empty string produces a URI with all components unset (the OpenSwoole\Core\Psr\Uri default). Delegates parsing to OpenSwoole\Core\Psr\Uri.

Parameters
$uri : string = ''
Return values
UriInterface
On this page