Skip to Content
Mastering PHP 7
book

Mastering PHP 7

by Branko Ajzele
June 2017
Intermediate to advanced
536 pages
9h 49m
English
Packt Publishing
Content preview from Mastering PHP 7

PSR-13 - hypermedia links

The hypermedia links form an essential part of any web application, whether we are speaking about HTML or API formats. At the very minimum, each hypermedia link consists of a URI representing the target resource and a relationship defining how the target resource relates to the source. The target link must be an absolute URI or a relative URI, as defined by RFC 5988, or possibly a URI template as defined by RFC 6570.

The PSR-13 standard defines a series of interfaces that outline a common hypermedia format and a way to represent links between these formats:

  • Psr\Link\LinkInterface
  • Psr\Link\EvolvableLinkInterface
  • Psr\Link\LinkProviderInterface
  • Psr\Link\EvolvableLinkProviderInterface

These interfaces can be fetched ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Learning PHP 7

Learning PHP 7

Antonio L Zapata (GBP)
Upgrading to PHP 5

Upgrading to PHP 5

Adam Trachtenberg

Publisher Resources

ISBN: 9781785882814Supplemental Content