Registry / networking / psr-link

psr-link

JSON →
library2.0.1phppackagistunverified

Common interfaces for HTTP links as defined by PSR-13.

composer require psr/link
INSTALL
IMPORT
SIG · PSR-LINK
P
psr-link
networkingphpv2.0.1
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.

LinkInterface
use Psr\Link\LinkInterface;

Implement the PSR-13 LinkInterface for an HTTP link.

<?php\nuse Psr\\Link\\LinkInterface;\n\n$link = new class implements LinkInterface {\n public function getHref() { return 'https://example.com'; }\n public function getRel() { return ['next']; }\n public function getAttributes() { return []; }\n};\necho $link->getHref();
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.0.1latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Amazon
1
Resources
psr-link — pip install psr-link · libregistry