Search by

johnnickell / fight-common

johnnickell

A shared PHP library for Hexagonal Architecture, CQRS, and reusable domain primitives

Package info

github.com/johnnickell/fight-common

pkg:composer/johnnickell/fight-common

Statistics

Installs: 660

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

v1.2.0 2026-09-13 00:57 UTC

README

Fight Common: the Inward Port mark beside the Fight Common wordmark

Fight Common

Tests PHP 8.5+ License: MIT

Framework-neutral PHP building blocks for applications that keep business rules independent from frameworks and infrastructure. Fight Common gives experienced PHP teams focused domain primitives, application contracts, and optional adapters without taking ownership of the application around them.

composer require johnnickell/fight-common

Quick Start · Architecture · Component Atlas · Framework Support

Inward architecture

Dependencies point inward: Adapter → Application → Domain.

Layer Owns
Adapter Framework, provider, and infrastructure integration.
Application Use-case coordination and ports expressed against the Domain.
Domain Pure business rules and durable primitives with no framework dependency.

The Architecture guide is authoritative for the complete dependency policy and enforcement model.

Choose a capability

Model Coordinate Connect Operate
Values Messaging HTTP Client Observability
Specifications Validation Cache Process
Event Sourcing Dependency Injection Mail Scheduler

The Repositories guide and the complete Component Atlas hold the implementation detail; this README stays deliberately compact.

JSend response compatibility

Fight Common retains its published 1.x framework-neutral envelope and Symfony response behavior. The Validation guide is the authoritative route for response composition and integration guidance.

Project routes

Copyright © 2026 John Nickell.