google/cloud-pubsub
Idiomatic PHP client for Google Cloud Pub/Sub, a fully-managed real-time messaging service for sending and receiving messages between independent applications. Install via Composer; supports REST and gRPC with built-in authentication helpers.
PUBSUB_EMULATOR_HOST test harness in CI.ext-grpc) or GCP IAM/ADC skills — REST works, but you lose streaming pull, which is where the efficiency wins live.For executives: Pub/Sub is Google's managed messaging service; this package is the official, free, Apache-2.0 PHP client. It lets us move background jobs and service-to-service events onto infrastructure Google operates — no brokers to run, built-in retries, dead-letter queues, 31-day replay, and elastic scale for traffic spikes. Cost shifts from engineering headcount to usage fees; the trade-off is deeper GCP dependence and a migration project rather than a drop-in swap.
For engineering: It's a generated, GA client with stable versioning and active releases (PHP 8.4 supported, recent additions include schema/transform support and Bigtable/BigQuery subscriptions). It supports gRPC for streaming pull (best throughput) with REST as fallback, an emulator for local dev and CI, and standard ADC auth on GCP. The real work is not the client — it's writing a Laravel queue connector + subscriber worker with proper ack/nack and idempotency, since nothing native exists.
Ask: a time-boxed spike (roughly 1–2 weeks) to build a thin queue driver, benchmark against our current Redis setup on cost and latency, and validate the emulator-based test path — then a go/no-go on migrating one non-critical job pipeline first.
How can I help you explore Laravel packages today?