Symfony adapter for PHP TrueAsync.
- PHP 8.6+ with the TrueAsync extension
- Symfony 7.0 or 8.0
ext-pcntl,ext-pdo
composer require yangusik/symfony-spawn// config/bundles.php
Spawn\Symfony\TrueAsyncBundle::class => ['all' => true],The runtime is registered automatically via composer.json. That's it.
php bin/console async:serve
php bin/console async:serve --host=0.0.0.0 --port=9000FrankenPHP worker mode is detected automatically via FRANKENPHP_WORKER.
When doctrine/orm is installed, the bundle automatically enables TrueAsync's PDO connection pool and isolates transaction state per coroutine.
Default pool settings (override in config/packages/true_async.yaml):
true_async:
db_pool:
enabled: true
min: 2
max: 10
healthcheck_interval: 30MIT