Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Php Kafka Lib Laravel Package

jobcloud/php-kafka-lib

A PHP Kafka client library that wraps ext-rdkafka with high-level producers, consumers, and message handlers. It supports Avro/JSON serialization and schema registry integration, making Kafka easier to use in PHP services.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Event-driven architecture bets: Decides whether to standardise on Kafka as the backbone for cross-service events (orders, payments, notifications) versus staying with Laravel's native queue/Redis driver. jobcloud/php-kafka-lib is the PHP-side plumbing that makes that call feasible without writing raw ext-rdkafka consumer loops in every service.
  • Build vs buy on messaging infrastructure: Informs whether to invest engineering time in an in-house consumer/producer abstraction, adopt this package, or pay for a managed platform (Confluent Cloud, Redpanda, AWS MSK). The package reduces the "build" surface to configuration and topic/consumer-group design.
  • Roadmap sequencing for real-time features: Supports prioritising work that depends on replayable event logs — audit trails, backfill/reprocessing, analytics ingestion, and fan-out to multiple downstream consumers — which Laravel queues handle poorly.
  • Platform-level standardisation: A shared Kafka library means one place to enforce consumer-group naming, offset commit semantics, error handling, and retry/dead-letter policy across teams. That is a governance and onboarding-speed decision, not just a technical one.
  • Operational risk posture: Because this is a low-level library (not a queue abstraction), it puts decisions about idempotency, at-least-once delivery, and poison-message handling squarely on your teams. That has staffing and on-call implications worth surfacing before committing.
  • Upgrade/maintenance budgeting: The v2.0.2 patch is a PHP deprecation fix — a signal that the maintainers track upstream PHP versions. Useful data for a "who owns this dependency and how often will it need attention" line item.

When to Consider This Package

Adopt when:

  • You already run Kafka (or are committing to it) and need PHP/Laravel services to produce and consume without a per-service bespoke client.
  • You need replayable, multi-consumer event streams — several services or analytics jobs reading the same events — which a point-to-point queue does not give you.
  • You have (or will hire) engineers comfortable with ext-rdkafka, offset management, partitioning, and consumer-group rebalancing. This library exposes those primitives rather than hiding them.
  • You want a small, single-purpose dependency from a known European job-tech company rather than a heavyweight framework.
  • Your PHP runtime is current enough that deprecation warnings are being cleaned up — v2.0.2 exists precisely because the library is being kept compatible with newer PHP versions.

Look elsewhere when:

  • You only need background jobs and delayed retries. Laravel's queue with Redis/SQS is cheaper, simpler, and better documented — do not adopt Kafka for this.
  • You need a Laravel-native developer experience (Eloquent-style jobs, dispatch(), Horizon dashboards, failed_jobs table). This package is not that; it is infrastructure-level. Consider a higher-level wrapper or a managed connector.
  • Your team lacks Kafka operational experience and you have no platform/SRE function to own brokers, topic lifecycle, and consumer lag monitoring.
  • You require vendor support contracts or SLAs — this is a community OSS library with a small maintainer base.
  • You are on an older PHP version or a PHP framework stack where ext-rdkafka is unavailable in your hosting environment (shared hosting, some serverless runtimes).

How to Pitch It (Stakeholders)

For executives: This is a small open-source PHP library that lets our Laravel services talk to Kafka. It is not a product feature in itself — it is an enabler. Adopting it is what makes an event-driven architecture practical in PHP without each team building its own Kafka client, which is where cost and inconsistency usually creep in. The trade-off is that Kafka brings real operational overhead: brokers to run, consumer lag to monitor, on-call responsibility. So the pitch is not "adopt this package"; it is "if we commit to Kafka for real-time and cross-service events, this package is the cheap, standardised way to do the PHP side."

For engineering: v2.0.2 is a maintenance patch — it resolves a PHP deprecation warning and adds a first-time contributor. Nothing breaking, no API changes, no migration work. It signals the library is actively kept compatible with current PHP versions, which is the main thing you want to see from a low-level dependency. Note that this library gives you primitives, not guardrails: consumer groups, offset commits, idempotency, and dead-letter handling remain your responsibility (or must be centralised in your own internal wrapper). If we standardise on it, we should budget for exactly one internal abstraction layer on top, owned by the platform team, so product teams never touch the raw client.

Recommendation: Low-risk, low-cost dependency. Worth a short spike to confirm ext-rdkafka availability across our environments and to size the internal wrapper effort, before treating Kafka as a committed architectural direction.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console