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

Langfuse Bundle Laravel Package

lingoda/langfuse-bundle

Integrates Langfuse observability into your PHP application, letting you trace LLM calls, log prompts and completions, and monitor latency and cost. Provides configurable clients and automatic instrumentation so you can debug AI features in production.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy for LLM observability. This package is a thin Symfony integration layer over the Langfuse PHP SDK. It answers a recurring PM question — "do we stand up our own tracing/cost logging, or adopt a tool?" — by making the adoption cost roughly a config block plus a dependency, rather than a sprint of plumbing work.
  • Whether an AI feature is safe to ship. Langfuse gives per-request traces: prompt/response pairs, token counts, latency, and cost. That is the evidence base for go/no-go on a generative feature, for setting unit-economics assumptions in a pricing model, and for answering "why did the assistant answer that?" in a support escalation.
  • Vendor selection within the observability category. Choosing Langfuse (open source, self-hostable) over LangSmith/Helicone/raw OpenTelemetry is a strategic call about data residency, cost, and lock-in. This bundle is a low-commitment way to run that evaluation on real traffic before signing anything.
  • Roadmap sequencing for a Symfony/PHP service. If the team is PHP-first and already on Symfony, this determines whether AI instrumentation lands in the current quarter or gets deferred behind a "we need a Python service for that" architectural detour.
  • Prompt iteration as a product loop. Langfuse's prompt management means non-engineers can version and roll back prompts without a deploy. That changes how you plan experimentation and who owns quality regressions.

When to Consider This Package

Adopt when:

  • You are on Symfony, not Laravel. This is a Symfony bundle, not a Laravel package — Laravel teams should wire the Langfuse PHP SDK directly or look for a Laravel-specific integration. Do not let the "PHP package" framing create a false expectation.
  • You have a small, early LLM surface (a few endpoints, a chat feature, a summarizer) and want tracing in days, not weeks.
  • You are already using or actively trialing Langfuse cloud or self-hosted — the bundle is worthless without the backend.
  • You want DI-configured instrumentation and are comfortable reading the bundle's source, because documentation is likely thin.

Look elsewhere when:

  • Community validation matters. One star, zero dependents, and a single corporate maintainer is the headline risk. MIT licensing protects you legally, but not operationally — there is no ecosystem to lean on, no Stack Overflow corpus, and no guarantee of responsiveness.
  • You need production-grade support or an SLA. Neither exists here.
  • You need OpenTelemetry-native instrumentation that spans beyond LLM calls into your whole stack. Prefer OTel plus Langfuse's OTLP endpoint, or a more mature instrumentation library.
  • Your team is Laravel-standardized, or the service is high-traffic and business-critical — in either case, depending directly on the upstream SDK reduces the number of maintainers you're trusting from two to one.
  • You're already committed to a different observability vendor and would only be adding a second pane of glass.

The honest read: treat this as a reference implementation or internal convenience wrapper that happens to be public, not a community-standard package. It is worth a spike, not a dependency-graph commitment.

How to Pitch It (Stakeholders)

To executives: Langfuse is open-source LLM observability — it tells us what our AI features cost, how slow they are, and why they produced a given answer. This bundle is the Symfony-side adapter that lets us turn that on with configuration instead of custom engineering. It's MIT-licensed, self-hostable, and cheap to try. The decision it unlocks is small and reversible: a short spike to get cost-per-request and latency data before we commit to pricing or scaling any AI feature. The caveat to state plainly: it is a single-maintainer package with essentially no adoption, so we pilot it behind an internal abstraction and pin the version — we are betting on Langfuse, not on this bundle.

To engineering: This is a Symfony bundle wrapping the official Langfuse PHP SDK — DI configuration, minimal surface area, no proprietary abstractions. Expected effort is a config block and a spike, not a refactor. Two guardrails: keep Langfuse calls behind our own interface so we can swap to the raw SDK or to OTLP without touching feature code, and review the bundle's source before merging since the project has one star and no dependents. If the bundle gets in the way, drop it and use the SDK directly — the bundle is the disposable part.

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.
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
equipc/laravel-email-database-log
adedsec/nova-translated-labels
wazza/laravel-db-encryption
hokny/laravel-generator
vonsogt/backup
jengo/queues
jeremykenedy/laravel-observability
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums