PHPackages                             gometap/larai-tracker - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Admin Panels](/categories/admin)
4. /
5. gometap/larai-tracker

ActiveLibrary[Admin Panels](/categories/admin)

gometap/larai-tracker
=====================

A standalone dashboard to track AI token usage and API costs for Laravel applications.

v1.0.5(2mo ago)7621[1 PRs](https://github.com/Gometap/larai-tracker/pulls)Apache-2.0BladePHP ^8.2CI passing

Since Feb 18Pushed 2mo ago2 watchersCompare

[ Source](https://github.com/Gometap/larai-tracker)[ Packagist](https://packagist.org/packages/gometap/larai-tracker)[ RSS](/packages/gometap-larai-tracker/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (11)Versions (13)Used By (0)

 [![Larai Tracker Logo](https://camo.githubusercontent.com/b754ad805f64f70d60ca7a7b4fc26f2335d49aedd67c798d0d3c0a6ee18f09eb/68747470733a2f2f646f71396f747a337a72636d702e636c6f756466726f6e742e6e65742f626c6f67732f315f313737313431373037395f724a3741545048772e706e67)](https://camo.githubusercontent.com/b754ad805f64f70d60ca7a7b4fc26f2335d49aedd67c798d0d3c0a6ee18f09eb/68747470733a2f2f646f71396f747a337a72636d702e636c6f756466726f6e742e6e65742f626c6f67732f315f313737313431373037395f724a3741545048772e706e67)

Larai Tracker 🚀
===============

[](#larai-tracker-)

[![Latest Version on Packagist](https://camo.githubusercontent.com/c97da966995f7a0d31dda027b135229f035893f9b2210ed0ce2195093b505591/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f676f6d657461702f6c617261692d747261636b65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/gometap/larai-tracker)[![Total Downloads](https://camo.githubusercontent.com/dbc0395fe601da37703d575221b7fa22f258e48404b16c7544c3d8e44983ed7a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f676f6d657461702f6c617261692d747261636b65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/gometap/larai-tracker)[![Tests](https://github.com/gometap/larai-tracker/workflows/Tests/badge.svg)](https://github.com/gometap/larai-tracker/actions)

**Larai Tracker** is a powerful, standalone dashboard for tracking AI token usage and API costs in Laravel applications. It "invisibly" intercepts AI responses via Laravel's native HTTP Client events, meaning it works with **OpenAI, Gemini, Azure, and OpenRouter** out of the box with **zero code changes** to your application logic.

Supports Laravel **10, 11, and 12**.

Screenshots
-----------

[](#screenshots)

### Dashboard

[](#dashboard)

[![Dark Preview](https://github.com/gometap/larai-tracker/raw/main/art/dark.png)](https://github.com/gometap/larai-tracker/raw/main/art/dark.png)[![Light Preview](https://github.com/gometap/larai-tracker/raw/main/art/light.png)](https://github.com/gometap/larai-tracker/raw/main/art/light.png)

### Logs

[](#logs)

[![Logs Preview](https://github.com/gometap/larai-tracker/raw/main/art/logs.png)](https://github.com/gometap/larai-tracker/raw/main/art/logs.png)

Features
--------

[](#features)

- 🕵️ **Invisible Tracking**: Automatically logs AI responses via Laravel's `ResponseReceived` event.
- 📊 **Premium Dashboard**: Access a high-end AI analytics center at `/larai-tracker`.
- � **Singleton Authentication**: Secure password-protected dashboard (Config &gt; ENV &gt; DB).
- �💰 **Cost Calculation**: Real-time USD cost estimation for GPT-4o, Gemini Flash, and more.
- 🌐 **Multi-Provider Support**: Seamlessly tracks OpenAI, Azure, Gemini, and OpenRouter.
- ⚙️ **Dynamic Pricing**: Sync latest prices or manually override model costs from the UI.

Installation
------------

[](#installation)

Install the package via composer:

```
composer require gometap/larai-tracker
```

Publish and run the migrations:

```
php artisan vendor:publish --tag="larai-tracker-migrations"
php artisan migrate
```

(Optional) Publish the configuration:

```
php artisan vendor:publish --tag="larai-tracker-config"
```

Usage
-----

[](#usage)

### 🕵️ Automatic Tracking

[](#️-automatic-tracking)

Once installed, the package starts working immediately. Every time your application uses the Laravel `Http` facade to call an AI provider (OpenAI, Gemini, etc.), Larai Tracker intercepts the response, parses the token usage, and logs it to the database.

### 📊 Accessing the Dashboard

[](#-accessing-the-dashboard)

Navigate to your application's URL at: `https://your-domain.com/larai-tracker`

The dashboard features a premium dark-mode interface with:

- **Total Investment**: Your overall API spent.
- **Burn Rate**: Today's AI cost.
- **Token Metrics**: Total computation used.
- **Live Stream**: A real-time log of the latest AI calls.

Configuration
-------------

[](#configuration)

### Authentication (Singleton Auth)

[](#authentication-singleton-auth)

Larai Tracker uses a simple yet secure singleton authentication system. You can set the password in three ways (ordered by priority):

1. **Database**: Change it directly from the **Security** section in the dashboard settings.
2. **Environment**: Set `LARAI_TRACKER_PASSWORD` in your `.env` file.
3. **Config**: Set it in `config/larai-tracker.php`.

If no password is set and you are in a non-local environment, you will be prompted to set up a password upon your first visit.

🧪 Testing
---------

[](#-testing)

The package includes a comprehensive test suite powered by [Pest](https://pestphp.com/).

```
composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [danni](https://github.com/Danni2901)
- [Gometap Group](https://github.com/gometap)

License
-------

[](#license)

The Apache License 2.0. Please see [License File](LICENSE) for more information.

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance85

Actively maintained with recent releases

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~4 days

Total

8

Last Release

63d ago

Major Versions

v0.9.4 → v1.0.02026-02-18

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/220138802?v=4)[develop-gmt](/maintainers/develop-gmt)[@develop-gmt](https://github.com/develop-gmt)

---

Top Contributors

[![develop-gmt](https://avatars.githubusercontent.com/u/220138802?v=4)](https://github.com/develop-gmt "develop-gmt (4 commits)")[![Danni2901](https://avatars.githubusercontent.com/u/73463418?v=4)](https://github.com/Danni2901 "Danni2901 (1 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/gometap-larai-tracker/health.svg)

```
[![Health](https://phpackages.com/badges/gometap-larai-tracker/health.svg)](https://phpackages.com/packages/gometap-larai-tracker)
```

###  Alternatives

[slowlyo/owl-admin

基于 laravel、amis 开发的后台框架~

61214.2k26](/packages/slowlyo-owl-admin)[takielias/tablar

Tablar: A Laravel Dashboard Preset Featuring Dark Mode and Dynamic Menu Generation for Effortless Navigation and Fast Development.

30817.7k3](/packages/takielias-tablar)[sebastienheyd/boilerplate

Laravel Boilerplate based on AdminLTE 3 with blade components, user management, roles, permissions, logs viewer, ...

28618.2k3](/packages/sebastienheyd-boilerplate)[takielias/tablar-kit

The Elegance of Tablar Dashboard

413.4k](/packages/takielias-tablar-kit)[adminui/inertia-routes

A hybrid JS/PHP package adding Ziggy-routes functionality to your Laravel/Inertia/Vue3 application

183.2k](/packages/adminui-inertia-routes)[a2insights/filament-saas

Filament Saas for A2Insights

161.1k](/packages/a2insights-filament-saas)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
