aboutcoders/process-control-bundle
Symfony bundle providing process control via a container service (abc.process_control.controller). Default PCNTL implementation listens for SIGTERM so long-running jobs can detect when to exit. Service registration can be disabled via configuration.
Use This When:
SIGTERM) to clean up resources (e.g., database transactions, file locks).Look Elsewhere If:
symfony/process or custom solutions).For Executives: "This bundle solves a critical but often overlooked problem: how to safely shut down long-running PHP processes without losing work or corrupting data. For example, if our payment processing jobs or batch imports are interrupted, this ensures they complete cleanly—saving us from customer complaints and data integrity issues. It’s a lightweight, MIT-licensed solution that integrates seamlessly with Symfony, requiring minimal dev effort while adding enterprise-grade reliability. The cost? Almost zero—just a Composer install and a few lines of config."
For Engineers:
*"The AbcProcessControlBundle gives us a Symfony service to handle SIGTERM gracefully, so we can:
$controller->doExit() and trigger cleanup (e.g., rollback transactions, release locks).AppKernel and configure).
Tradeoff: It’s PCNTL-based (Linux/macOS only), so if we need Windows support or more advanced process management, we’d need to supplement it. But for our Symfony CLI workers and APIs, this is a no-brainer for reliability."*How can I help you explore Laravel packages today?