Skip to content
Packstub

Free & open source

Credits for Laravel

Charge per use in any Laravel app: AI calls, exports, SMS, API requests. Give each user or team a balance, let plans top it up every period without a cron, reserve credits before an AI call and settle what it actually cost, meter usage without ever rounding a credit away, and know at any time where every credit came from and where it went.

composer require packstub/credits
Credits for Laravel screenshot
Package
packstub/credits
License
MIT, free for any project
Installs from
Packagist

Also on Packagist GitHub

What you’ll write

The real API, copied from the README, so you can judge the code before you install anything.

app/Jobs/RunAgentTurn.php
$hold = $team->credits()->hold(200, 'AI turn');$response = $agent->prompt($question);$hold->settleUsage(['ai.output_tokens' => $response->usage->outputTokens]);

What’s included

One command, from Packagist

No accounts, no tokens. This package is free and open source — it installs straight from Packagist like any other Composer package.

Terminal
composer require packstub/credits
./composer.json has been updated
Generating optimized autoload files

Free, and maintained like everything else we ship.

Is it really free?
Yes — MIT licensed, free forever, for any kind of project. We build our own plugins with it, and sharing it makes the whole ecosystem better.
How do I install it?
Run the Composer command above. It installs from Packagist like any other package — no Packstub account needed.
Can I use it in commercial projects?
Absolutely. The MIT license covers personal, client, and commercial use without restrictions.
Where do I report bugs or request features?
On the GitHub repository — issues and pull requests are both very welcome.
How does this relate to your paid plugins?
Same team, same standards. Free tools like this one are part of how we build our commercial plugins, so they get maintained with the same care.