PSR-13 Hypermedia Link Generator

•
45
•

Generates PSR-13 compliant hypermedia link implementations and providers for HATEOAS REST APIs in PHP 8.4.

This skill automates the creation of standardized hypermedia links following the PSR-13 specification, which is essential for building discoverable HATEOAS-compliant REST APIs. It generates immutable Link and LinkProvider classes compatible with PHP 8.4, allowing developers to easily manage resource relations, URI templates, and link attributes. By providing a production-ready implementation of EvolvableLinkInterface and EvolvableLinkProviderInterface, it ensures your PHP backend follows architectural best practices for web linking and resource navigation while reducing boilerplate code.

主要功能

0145 GitHub stars
02Generates full PSR-13 compliant Link and LinkProvider implementations
03Supports URI template detection and link relation management
04Utilizes PHP 8.4 readonly classes and constructor property promotion
05Includes automated PHPUnit tests for infrastructure and presentation layers
06Provides EvolvableLinkInterface for immutable state management

使用场景

01Managing complex resource relationships and URI templates in enterprise web services
02Implementing HATEOAS navigation in modern PHP REST APIs
03Standardizing hypermedia-driven resource responses in DDD or Clean Architecture