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

Sdk Laravel Package

temporal/sdk

PHP SDK for authoring Temporal Workflows and Activities, enabling scalable, durable async business logic. Clients require ext-grpc; Workers require RoadRunner, with ext-protobuf recommended for production performance. Install via Composer.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

  • Architecture fit: Strong fit when Laravel/PHP needs durable orchestration for long-running, asynchronous, multi-step business processes—order fulfillment, onboarding, billing retries, approvals, scheduled jobs, compensation flows—rather than simple queue jobs. Temporal provides workflow state, retries, timers, and replay; temporal/sdk provides the PHP authoring layer.
  • Integration feasibility: Composer installation is straightforward, but runtime requirements are not: the Client component requires ext-grpc, the Worker component requires RoadRunner, and ext-protobuf is recommended for production performance. A Laravel app can use the SDK as a client inside PHP-FPM, but workers should run as a separate long-lived RoadRunner service.
  • Technical risk: Main risks are operational, not syntax-level: worker deployment model, PHP extension management, workflow determinism, replay compatibility across SDK upgrades, and feature-flag behavior changes. The README explicitly warns that v2.11.0 feature flags change whole-worker behavior, and v2.19 gates the new await() semantics behind a flag to preserve replay compatibility.
  • Maturity signals: Official Temporal project, MIT licensed, active releases and documentation, but only 419 GitHub stars and 0 listed dependents. This does not imply low quality, but it means fewer public PHP/Laravel integration patterns than mainstream Laravel packages; expect to own more integration glue.
  • Key questions:
    • Which Laravel workflows truly need durable orchestration versus existing queues/cron?
    • Will Temporal be Temporal Cloud or self-hosted, and who owns that platform?
    • What PHP runtime, extension policy, and container base images are standard?
    • Can we deploy a separate RoadRunner worker service alongside Laravel PHP-FPM?
    • What SDK version pinning and upgrade cadence will we enforce?
    • What is the replay/versioning strategy for in-flight workflows?
    • Do we need Cloud Operations API or Operator API access, and how are credentials managed?
    • What latency, throughput, and workflow-volume SLOs apply?

Integration Approach

  • Stack fit: Treat Laravel as the system of record and workflow starter; treat a dedicated Temporal worker service as the execution host for workflows and activities. Reuse Laravel domain services from activities where practical, but keep activities idempotent and side-effect aware. Do not run workflow workers inside standard PHP-FPM request processes.
  • Migration path: Start with one bounded, non-critical workflow rather than rewriting existing jobs. Wrap existing Laravel services or APIs as activities, run against Temporal CLI’s dev server locally/CI, then promote to a real Temporal namespace. Expand only after replay tests, worker deployment, and observability are proven.
  • Compatibility: Confirm PHP version support from Packagist badges, install ext-grpc for clients, RoadRunner for workers, and ext-protobuf where possible. Note that v2.19 moves roadrunner-api-dto to ^1.15.0 and includes ext-protobuf 3.x compatibility fixes; pin Composer versions and review release notes before upgrades.
  • Laravel integration details: Expect custom glue: config publishing, service provider bindings for WorkflowClient, namespace/task-queue configuration, worker entrypoint, health checks, and secret management. The README references Spiral integration but no first-party Laravel package, so budget for internal integration work.
  • Sequencing:
    1. Feasibility spike: local Temporal CLI, one workflow, one activity, SDK test toolkit and replay test.
    2. Platform decision: Cloud vs self-hosted, namespace strategy, auth/TLS, retention.
    3. Worker skeleton: RoadRunner container, task queue, deployment pipeline, logs/metrics.
    4. Pilot workflow: idempotent activities, retry policy, timeout policy, failure path.
    5. Production readiness: replay/versioning runbook, upgrade policy, alerting, load test.
    6. Migration wave: replace selected cron/queue/state-machine flows only after pilot exit criteria are met.
  • Compatibility cautions: Feature flags introduced in v2.11.0 and the v2.19 settleAwaitOnFirstSettledCondition flag must be deliberately configured. Changes can alter emitted workflow commands and break replay if not managed; this belongs in the rollout plan, not an afterthought.

Operational Impact

  • Maintenance: Ongoing ownership includes SDK upgrades, RoadRunner updates, PHP extension availability, Temporal namespace/cluster operations, workflow versioning, and replay compatibility. Assign a named platform owner; this is not a “composer require and forget” dependency.
  • Support: Official Temporal docs, API reference, Slack, forum, Discord, and samples exist. MIT license removes licensing cost but not operational responsibility. If using Temporal Cloud, clarify vendor support boundaries versus SDK and worker issues.
  • Scaling: Temporal itself is designed to scale; PHP worker capacity scales horizontally via RoadRunner workers and task queues. Plan separate worker pools per workload class, tune worker concurrency, and use ext-protobuf for performance. Client connections from Laravel should be pooled/configured carefully; activities that hit databases or external APIs need their own backpressure and idempotency.
  • Failure modes: Worker crashes, RoadRunner process failures, missing PHP extensions, task-queue backlog, non-deterministic workflow code, poison workflows, activity retries without idempotency, stuck timers/awaits, replay failures after upgrade, and misconfigured feature flags. Also note that workers run outside normal request/response debugging; README recommends Buggregator/Trap because var_dump, echo, and similar output do not work as expected.
  • Ramp-up: PHP developers must learn Temporal concepts: workflows vs activities, determinism, replay, versioning, retries, timers, and worker lifecycle. RoadRunner and gRPC/protobuf add platform learning. TPM should fund training, a sample workflow, runbooks, and a pilot review before broad rollout; expect initial delivery slowdown before durability benefits appear.
  • TPM leverage: Use this package assessment to frame a pilot decision, not a wholesale migration. Define exit criteria around replay safety, worker operability, activity idempotency, upgrade rollback, and on-call readiness. The business case is strongest where lost workflow state, manual retries, or long-running coordination currently create measurable cost.
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.
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator