lunetics/llm-cost-tracking-bundle
Lunetics LLM Cost Tracking Bundle helps Symfony/PHP apps monitor LLM API usage and estimate spend across providers and models. Track token counts, attribute costs to users or features, set budgets, and review usage via dashboards and reports.
Consider adopting when:
Look elsewhere or defer when:
For executives: We currently cannot say what an LLM-backed request costs us, and we have no way to detect when that number is incomplete. This package is a small, low-cost instrument that attributes token spend per call and — as of v0.6.0 — explicitly reports calls it could not track. That second part matters more than it sounds: it is the difference between a cost figure we can quietly trust and one that could understate spend without anyone noticing. It is not a billing system; it is the instrumentation that tells us whether a billing system is even feasible. Recommend a time-boxed pilot in staging, not a production commitment.
For engineering: Adopt behind a thin internal adapter. v0.6.0 makes a breaking change to CostTrackerInterface to expose skipped calls — good change, real value, but it confirms the API is still in motion at 0.x. One wrapper class means the next break costs us an hour, not a sprint. Also flag the packaging: this is a Symfony bundle with a profiler panel. On Laravel we are writing glue, and that glue is the actual adoption cost — estimate it before committing. Upside: skipped-call visibility should immediately tell us whether our existing instrumentation is silently dropping traffic, which is worth knowing regardless of whether we keep the package.
How can I help you explore Laravel packages today?