Download the PHP package dual-native/http-system without Composer

On this page you can find all versions of the php package dual-native/http-system. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package http-system

Dual-Native HTTP System

Packagist Version PHP Version License

A framework-agnostic PHP library implementing the Dual-Native Pattern 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 & Discovery.

Features

Installation

Install via Composer:

Requirements

Quick Start

Basic Usage (Standalone)

WordPress Integration

See MIGRATION-GUIDE.md for complete WordPress plugin integration instructions.

Laravel Integration

Core Concepts

This library provides the business logic for the Dual-Native Pattern. When used in HTTP contexts, CIDs map to ETags for conditional requests (If-Match, If-None-Match), enabling 304 Not Modified responses for unchanged resources and 412 Precondition Failed for conflicting writes. See the WordPress plugin for a complete HTTP implementation example.

Content Identity (CID)

CIDs are SHA-256 hashes of canonical JSON representations, used as ETags for efficient caching:

Safe Write Operations

Prevent conflicting updates using optimistic concurrency control:

Resource Catalog

Maintain a registry of dual-native resources:

Bidirectional Links

Generate navigation links between HR and MR:

Architecture

The library follows a clean architecture with dependency injection:

Interfaces

EventDispatcherInterface: Framework-agnostic event dispatching

StorageInterface: Framework-agnostic data persistence

Adapters

Included:

Create your own: Implement the interfaces for your framework (Laravel, Symfony, etc.)

Testing

The library includes a comprehensive test suite:

API Reference

DualNativeSystem

Constructor

Content Identity

Resource Management

Catalog

Links

Validation

Health Check

Configuration

Default configuration:

Events

When using an event dispatcher, the library dispatches these events:

Performance

Use Cases

Documentation

Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch
  3. Add tests for new functionality
  4. Ensure all tests pass
  5. Submit a pull request

License

GPL-2.0-or-later - GNU General Public License v2.0 or later

Credits

Developed by the Dual-Native Team

Support


All versions of http-system with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dual-native/http-system contains the following files

Loading the files please wait ...