puff / application
Reusable HTTP application orchestration for Puff
dev-main
2026-08-07 19:17 UTC
Requires
- php: ^8.2
- composer-runtime-api: ^2.2
- ext-pcntl: *
- ext-posix: *
- puff/async: dev-main
- puff/di: dev-main
Requires (Dev)
- phpunit/phpunit: ^11.0
This package is auto-updated.
Last update: 2026-08-08 16:20:40 UTC
README
Protocol-independent application lifecycle for PHP Unison Fiber Framework. It owns one shared DI container, configuration binding, scoped Fiber cleanup, and Composer-discovered providers and protocol applications.
$app = new Puff\Application\Application() $app->run();
Installed protocol packages are mounted through Composer discovery:
puff/webserverfor HTTP routing and PSR-15 handling.puff/websocketfor WebSocket connection and frame dispatch.
Every installed application runs in its own supervised worker process. Configure <app>.workers to increase its worker count; the default is one worker per application.