PHPackages                             dual-native/http-system - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. dual-native/http-system

ActiveLibrary[HTTP &amp; Networking](/categories/http)

dual-native/http-system
=======================

Framework-agnostic PHP library implementing the Dual-Native Pattern with CID validation, bidirectional linking, and zero-fetch optimization

v1.0.0(5mo ago)10GPL-2.0-or-laterPHPPHP ^7.4|^8.0

Since Nov 25Pushed 5mo agoCompare

[ Source](https://github.com/antunjurkovic-collab/dual-native-http-system)[ Packagist](https://packagist.org/packages/dual-native/http-system)[ RSS](/packages/dual-native-http-system/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

Dual-Native HTTP System
=======================

[](#dual-native-http-system)

[![Packagist Version](https://camo.githubusercontent.com/b3b0e71088789121b8a2de8c6c5c2a3330617cf7beafa3d89fbec65f8383d465/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6475616c2d6e61746976652f687474702d73797374656d)](https://packagist.org/packages/dual-native/http-system)[![PHP Version](https://camo.githubusercontent.com/86290d8e4c03a08b0a245de00d5a8fe992747ebfbb74eca047b06d2b793dd6e1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6475616c2d6e61746976652f687474702d73797374656d)](https://packagist.org/packages/dual-native/http-system)[![License](https://camo.githubusercontent.com/ecb69de910139cce984ddd57acf24e328156b9488f0478092ac6832d31b8f888/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6475616c2d6e61746976652f687474702d73797374656d)](https://packagist.org/packages/dual-native/http-system)

A **framework-agnostic PHP library** implementing the [Dual-Native Pattern](https://github.com/dual-native) for synchronized Human Representation (HR) and Machine Representation (MR) content delivery with Content Identity (CID) validation, bidirectional linking, and zero-fetch optimization.

This library implements the Dual-Native Pattern as defined in the **Dual-Native Core Specification** and **Whitepaper**, providing a production-ready implementation of the 5 pillars: Resource Identity (RID), Content Identity (CID), Bidirectional Linking, Semantic Equivalence, and Cataloging &amp; Discovery.

Features
--------

[](#features)

- 🔄 **Framework-Agnostic**: Works with WordPress, Laravel, Symfony, or standalone
- 🆔 **Content Identity (CID)**: SHA-256 based version validators for zero-fetch optimization
- 🔗 **Bidirectional Linking**: Automatic navigation between HR and MR
- 📦 **Resource Catalog**: Registry of dual-native resources with efficient discovery
- 🔒 **Safe Write Operations**: Optimistic concurrency control with CID validation
- ✅ **Semantic Equivalence**: Validation that HR and MR represent the same content
- 🏗️ **Dependency Injection**: Clean architecture with pluggable adapters
- 🧪 **Well-Tested**: 14 PHPUnit tests (32 assertions) with 100% core coverage

Installation
------------

[](#installation)

Install via Composer:

```
composer require dual-native/http-system
```

Requirements
------------

[](#requirements)

- PHP 8.0 or higher
- PSR-4 autoloading support

Quick Start
-----------

[](#quick-start)

### Basic Usage (Standalone)

[](#basic-usage-standalone)

```
