subhashladumor1/laravel-ai-guard

Laravel AI Guard ๐Ÿ›ก๏ธ๐Ÿ’ฐ๐Ÿค– - Control and optimize AI costs in Laravel AI SDK applications ๐Ÿš€ Track OpenAI & LLM token usage ๐Ÿ“Š, estimate AI costs before execution โš ๏ธ, enforce AI budgets ๐Ÿงพ, and prevent unexpected billing spikes in production ๐Ÿ’ฅ.

27
/ 100
Experimental

This package helps Laravel developers manage and control spending on AI services like OpenAI and Anthropic within their applications. It takes your app's AI requests, estimates their cost before they run, tracks actual token usage, and enforces budgets for users or organizations. This provides financial visibility and prevents unexpected AI billing spikes.

Use this if you are building or maintaining a Laravel application that uses AI and you need to ensure predictable costs, prevent overspending, and track every AI interaction for billing or internal reporting.

Not ideal if your application does not use Laravel, or if you only use AI APIs for non-critical, ad-hoc tasks where cost tracking is not a priority.

AI-cost-management SaaS-billing API-cost-optimization application-budgeting AI-spending-control
No Package No Dependents
Maintenance 10 / 25
Adoption 6 / 25
Maturity 11 / 25
Community 0 / 25

How are scores calculated?

Stars

24

Forks

Language

PHP

License

MIT

Last pushed

Feb 14, 2026

Commits (30d)

0

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/subhashladumor1/laravel-ai-guard"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.