PSR 17: UriFactory Example
Terry L edited this page Jun 21, 2020
·
3 revisions
Pages 111
Clone this wiki locally
PSR 17 Factories
Namespace
Shieldon\Psr17\UriFactory
UriFactory
- createUri
-
::fromGlobal
(Non-PSR)
__construct
None
createUri($uri
)
-
param
string
uri= ""
The URI to parse. -
return
UriInterface
Example:
$uriFactory = new UriFactory;
$uri = $uriFactory->createUri();
::fromGlobal()
(Non-PSR)
-
return
UriInterface
Examples:
$uri = UriFactory::fromGlobal();
Install
composer require shieldon/psr-http
Shieldon PSR HTTP implementation written by Terry L. from Taiwan.