PHP Framework — v1.0.0-alpha
Build whatmatters.
A PHP framework built for CQRS, domain-driven design, and event-driven architecture. Compile-time discovery. Zero reflection at runtime. No magic.
Example
A handler.
Nothing more.
Mark a class with #[AsCommandHandler]. The command bus discovers it at compile time, wraps it in a transaction, dispatches domain events, and marks idempotency — automatically.
- ✓Compile-time handler discovery — zero runtime reflection
- ✓UnitOfWork wraps every handler automatically
- ✓Domain events pulled and dispatched inside the transaction
- ✓Idempotency resolved at compile time via #[AsIdempotencyKey]
Modules
Everything you need.
Nothing you don't.
01
Foundation
Runner, container auto-discovery, package system
↗
02
HTTP
Attribute routing, controllers, middleware chain
↗
03
Domain
Aggregates, events, value objects, collections
↗
04
CQRS
Command & query buses, idempotency, projections
↗
05
Persistence
DBAL write repos, MongoDB read repos, locking
↗
06
Messaging
Kafka event bus, outbox, retry, dead letter
↗
07
Cache
Tagged PSR-16 cache — Redis, InMemory, Array
↗
08
Auth
JWT, route protection, 2FA, rate limiting, quotas
↗
09
Authorization
Policies, role hierarchy, scoped & temporal
↗
10
Tracing
OpenTelemetry, sampling, per-module disable
↗
11
Logger
Monolog PSR-3, JSON in prod, line in dev
↗
12
Docker
FrankenPHP & PHP-FPM stubs, one command
↗
Start building.
Read the getting started guide, run your first command handler, and understand the architecture in under 10 minutes.