A pure PHP 8.1+ client for the beanstalkd workqueue, enabling reliable job processing in PHP applications.
Pheanstalk is a pure PHP client library for the beanstalkd work queue. It allows PHP applications to produce, reserve, and manage background jobs via beanstalkd's protocol, enabling asynchronous task processing. The library solves the problem of integrating PHP with beanstalkd for reliable, distributed job handling.
PHP developers building applications that require background job processing, task queues, or asynchronous workflows, particularly those already using or planning to use beanstalkd as their queue server.
Developers choose Pheanstalk for its modern, fully typed PHP 8.1+ implementation, strict static analysis compliance, and clean object-oriented design that ensures reliability and maintainability when working with beanstalkd.
PHP client for beanstalkd queue
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Implements strict type hints and passes PHPStan/Psalm static analysis, reducing runtime errors and improving code reliability.
Requires PHP 8.1 or higher, leveraging modern language features for better performance and developer experience.
Compatible with beanstalkd versions 1.12 and later, implementing all commands for full queue functionality.
Uses value objects like TubeName for type safety and follows encapsulated principles, enhancing maintainability.
Persistent connections were removed in version 4 to avoid protocol state issues, increasing TCP setup overhead for frequent job producers.
Requires manual handling of dropped connections and timeouts, as detailed in the README, adding boilerplate code to worker implementations.
Migration from v4 to v5 involved significant breaking changes, such as introducing TubeName objects and altering method signatures, which can disrupt existing codebases.