PHP Package: willdurand/hateoas

HATEOAS library for PHP to build hypermedia-driven REST APIs with ease

Current Version: 3.12.0
Last Updated: 2024-11-20
PHP Requirement: ^8.1
Dependencies:
php-fig/link
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

HATEOAS (Hypermedia as the Engine of Application State) library for PHP that simplifies the development of RESTful APIs by supporting hypermedia links and resource representations. It enables clients to navigate a REST application through hypermedia links dynamically. This library helps in building flexible and scalable APIs that follow the HATEOAS principle, enhancing API discoverability and reducing client-server coupling.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 3.12.0

Download Download v3.12.0

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/willdurand/hateoas/3.12.0/loader.php';
require_once 'libs/php-fig/link/2.0.1/loader.php';

use WillDurand\Hateoas\Link;
use WillDurand\Hateoas\Resource;

$obj = new Link();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.