clue/ndjson-react
Streaming NDJSON (newline-delimited JSON) encoder/decoder for ReactPHP. Parse or emit large JSON record streams efficiently without loading everything into memory. Implements ReactPHP stream interfaces for easy integration with IPC/RPC and file pipelines.
Architecture fit is poor for standard Laravel applications due to ReactPHP's event-driven, non-blocking I/O model conflicting with Laravel's synchronous request-response cycle. Integration feasibility is low unless leveraging ReactPHP for specific non-HTTP components (e.g., WebSocket servers, CLI tools). Technical risk is high due to paradigm mismatch and zero dependents indicating limited real-world adoption in Laravel ecosystems. Key questions: Does the use case require non-blocking streaming (e.g., real-time data pipelines)? Is the team experienced with ReactPHP? How will process isolation be handled between Laravel and ReactPHP components?
Stack fit is only viable for ReactPHP-based subsystems (e.g., beyondcode/laravel-websockets integrations), not core Laravel HTTP stack. Migration path requires creating separate ReactPHP processes with inter-process communication (IPC), not direct Laravel integration. Compatibility is strong with PHP 5.3+ (though modern versions recommended), but Laravel's dependency on Symfony components may create conflicts in shared memory or event systems. Sequencing should prioritize low-risk use cases (e.g., internal log processing CLI tools) before considering production-critical streaming features.
Maintenance burden is moderate-low due to 100% test coverage and stable API, but lack of recent updates (2022) raises long-term support concerns. Support relies entirely on community channels with no dedicated enterprise options. Scaling potential is excellent for high-throughput streaming workloads but requires careful resource management in ReactPHP's single-threaded model. Failure modes include malformed NDJSON crashing the stream and unhandled exceptions in ReactPHP event loops causing silent process termination. Ramp-up is high for teams unfamiliar with ReactPHP's async patterns, requiring training on stream handling and error propagation best practices.
How can I help you explore Laravel packages today?