Larameter: New Laravel Package to Manage Credits, Plans and Usage Quotas
A developer has released Larameter, an open-source Laravel package designed to handle credit metering, subscription plans, and usage quotas within web applications. The package addresses a common problem where billing logic, usage tracking, and plan limits drift out of sync as apps grow more complex. Larameter supports multiple time windows — such as session, weekly, and monthly caps — derived from a single plan-level credit figure, so updating one number automatically adjusts all limits. It works by adding a trait to any billable model, such as a user or organisation, without requiring extra database columns. The package can be installed via Composer and is modelled on metering systems seen in platforms like Claude and OpenAI.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in