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: 1 472

Dependents: 1

Suggesters: 0

Stars: 0

Open Issues: 0

v1.5.1 2026-11-12 17:51 UTC

README

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

Fight Common

Tests PHP 8.5+ License: MIT Stable release

Fight Common is a PHP library for tasks like checking input, handling commands and events, and sending email. Use the parts you need. You can keep your business rules separate from the framework and services you use.

Install with Composer, PHP's package manager. You need PHP 8.5 or later.

composer require johnnickell/fight-common

Choose a capability

  • Quick Start — Run an order example without a framework.
  • Components — Find a guide for the part you need.
  • Frameworks — Check support and find setup guides.

Inward architecture

The Architecture guide explains the dependency rule: Adapter → Application → Domain. Adapters connect to tools such as databases and frameworks. Application code runs use cases. The domain holds the business rules and does not depend on the other two layers.

JSend response compatibility

The framework-neutral JSend response format is unchanged. Use the typed response API; the old raw Symfony response and unsafe exception presenters have been removed. See the Validation guide for response behavior.

MCP foundation imports

If you use the Model Context Protocol (MCP), start with the removal inventory for canonical imports and what to do before upgrading saved PHP objects or changing container registrations. McpResponder and McpDiagnostics stay in the root MCP namespace. The v1.5 foundation map records the old aliases, and the aggregate namespace map covers the separate aggregate alignment.

See execution observations for optional activity records and their limits, and durable Tasks for the separate storage, transaction and read interfaces.

Project routes

Contributing · Repository · Source · Changelog · MIT License · Glossary · Local tooling

Copyright © 2026 John Nickell.