1 min readCalm pace · scan the outline anytime

Pure PHP + PSR skeleton

Framework-free Modular Hexagonal DDD folder skeleton with Ordering and Warehouse sketches.

Pure PHP + PSR skeleton

A minimal sample under samples/pure-php-psr/ shows how Core maps onto plain PHP with PSR-4 autoloading — no host framework required.

Locationsamples/pure-php-psr/
ModulesOrdering, Warehouse (greenfield)
IncludesPort sketches, PlaceOrderUseCase, Shared EventDispatcherInterface, Composer PSR-4

Why this sample exists

Adapters explain host mapping. This skeleton proves Core can stand alone: composition root, ports, ACL-shaped availability check, and Entity persistence ports without an ORM.

What it is not

  • Not a full HTTP framework
  • Not a product catalog
  • Not a substitute for a host adapter when you ship on a framework

Start here

  1. Read samples/pure-php-psr/README.md
  2. Open PlaceOrderUseCase and WarehouseAvailabilityPortInterface
  3. Compare with Cross-module ACL and Use cases & DTOs
Modular Hexagonal Domain-Driven Design
Core 1.0.0-draft