Registry / utility / fig-link-util

fig-link-util

JSON →
library1.2.0phppackagistunverified

Common utility implementations for HTTP links as defined by PSR-13.

composer require fig/link-util
INSTALL
IMPORT
SIG · FIG-LINK-UTIL
F
fig-link-util
utilityphpv1.2.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Link
use Fig\Link\Link;

Create and manipulate an HTTP link using PSR-13 Link value object.

use Fig\Link\Link; $link = new Link('stylesheet', '/style.css'); $link = $link->withAttribute('media', 'screen'); echo $link->getHref(); // /style.css
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.2.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
fig-link-util — pip install fig-link-util · libregistry