PHPackages                             kodamity/laravel-api-usage-pulse - 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. [API Development](/categories/api)
4. /
5. kodamity/laravel-api-usage-pulse

ActiveLibrary[API Development](/categories/api)

kodamity/laravel-api-usage-pulse
================================

API usage cards for Laravel Pulse

v1.2.0(5d ago)0639[2 PRs](https://github.com/Kodamity/laravel-api-usage-pulse/pulls)MITPHPPHP ^8.3CI passing

Since Feb 18Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/Kodamity/laravel-api-usage-pulse)[ Packagist](https://packagist.org/packages/kodamity/laravel-api-usage-pulse)[ Docs](https://github.com/kodamity/laravel-api-usage-pulse)[ GitHub Sponsors](https://github.com/Kodamity)[ RSS](/packages/kodamity-laravel-api-usage-pulse/feed)WikiDiscussions main Synced today

READMEChangelog (3)Dependencies (38)Versions (9)Used By (0)

[![Kodamity Logo](https://raw.githubusercontent.com/Kodamity/.github/refs/heads/main/art/logo.svg)](https://raw.githubusercontent.com/Kodamity/.github/refs/heads/main/art/logo.svg)

[![Requests Graph for Laravel Pulse](/art/cards.png)](/art/cards.png)

API usage cards for Laravel Pulse
=================================

[](#api-usage-cards-for-laravel-pulse)

[![Build Status](https://camo.githubusercontent.com/aaeb59f29a09386c372f8df7909b87eb1a75c3412fb8174142f9c976b93264bc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6b6f64616d6974792f6c61726176656c2d6170692d75736167652d70756c73652f74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/kodamity/laravel-api-usage-pulse/actions?query=workflow%3Atests+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/7bb8771d68cc0ab741cf4b7f0c30280714ca55064f5c96aa6cb4b49d47451894/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b6f64616d6974792f6c61726176656c2d6170692d75736167652d70756c73652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kodamity/laravel-api-usage-pulse)[![Latest Stable Version](https://camo.githubusercontent.com/e85ba74e59823a968fba2de36d9001922569485e9c03401104e887f2226bb131/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b6f64616d6974792f6c61726176656c2d6170692d75736167652d70756c73652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kodamity/laravel-api-usage-pulse)[![License](https://camo.githubusercontent.com/63c14e3522878fbab3debbacb80d138bfafb22945a0c2fa4392bac66805ff72b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6b6f64616d6974792f6c61726176656c2d6170692d75736167652d70756c73652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/kodamity/laravel-api-usage-pulse)

This is package that adds API usage cards and recorders for Laravel Pulse.

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

[](#installation)

You can install the package via composer:

```
composer require kodamity/laravel-api-usage-pulse
```

Recorders
---------

[](#recorders)

Add recorders configuration inside `config/pulse.php`. (If you don't have this file make sure you have published the config file of Laravel Pulse using `php artisan vendor:publish --tag=pulse-config`)

### Requests Statistics recorder

[](#requests-statistics-recorder)

Requests Statistics recorder records the number of requests and the number of successful requests in general for all users. And it records the number of requests and the number of successful requests for each user.

```
return [
    // ...

    'recorders' => [
        // Existing recorders...

        \Kodamity\Libraries\ApiUsagePulse\Recorders\RequestsStatistics::class => [
            'enabled' => env('PULSE_KDM_API_USAGE_REQUESTS_STATISTICS_ENABLED', true),
            'sample_rate' => env('PULSE_KDM_API_USAGE_REQUESTS_STATISTICS_SAMPLE_RATE', 1),
            'ignore' => [
                '#^/pulse$#', // Pulse dashboard...
            ],
        ],
    ],
];
```

### Responses Statistics recorder

[](#responses-statistics-recorder)

Responses Statistics recorder records the average response time and the number of responses by status code group for all users.

```
return [
    // ...

    'recorders' => [
        // Existing recorders...

        \Kodamity\Libraries\ApiUsagePulse\Recorders\ResponsesStatistics::class => [
            'enabled' => env('PULSE_KDM_API_USAGE_RESPONSES_STATISTICS_ENABLED', true),
            'sample_rate' => env('PULSE_KDM_API_USAGE_RESPONSES_STATISTICS_SAMPLE_RATE', 1),
            'ignore' => [
                '#^/pulse$#', // Pulse dashboard...
            ],
            'records' => [
                \Kodamity\Libraries\ApiUsagePulse\Enums\ResponseStatusGroup::Informational->value,
                \Kodamity\Libraries\ApiUsagePulse\Enums\ResponseStatusGroup::Successful->value,
                \Kodamity\Libraries\ApiUsagePulse\Enums\ResponseStatusGroup::Redirection->value,
                \Kodamity\Libraries\ApiUsagePulse\Enums\ResponseStatusGroup::ClientError->value,
                \Kodamity\Libraries\ApiUsagePulse\Enums\ResponseStatusGroup::ServerError->value,
            ],
        ],
    ],
];
```

Dashboards
----------

[](#dashboards)

To add the card to the Pulse dashboard, you must first [publish the vendor view](https://laravel.com/docs/11.x/pulse#dashboard-customization).

```
php artisan vendor:publish --tag=pulse-dashboard
```

Then, you can modify the `dashboard.blade.php` file and add the card to the dashboard.

```

```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

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

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Misha Serenkov](https://github.com/miserenkov)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

45

↑

FairBetter than 91% of packages

Maintenance84

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~165 days

Total

4

Last Release

5d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2da4989419ba449f8a65c166d33be4472ab6a37d3e55092f17e8ac9eba5b3574?d=identicon)[miserenkov](/maintainers/miserenkov)

---

Top Contributors

[![miserenkov](https://avatars.githubusercontent.com/u/12072466?v=4)](https://github.com/miserenkov "miserenkov (19 commits)")

---

Tags

apilaravelpulselaravel-pulseKodamitylaravel-api-usage-pulse

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/kodamity-laravel-api-usage-pulse/health.svg)

```
[![Health](https://phpackages.com/badges/kodamity-laravel-api-usage-pulse/health.svg)](https://phpackages.com/packages/kodamity-laravel-api-usage-pulse)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M345](/packages/psalm-plugin-laravel)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.6k3](/packages/defstudio-telegraph)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k15.1M132](/packages/laravel-pulse)[tallstackui/tallstackui

TallStackUI is a powerful suite of Blade components that elevate your workflow of Livewire applications.

725173.0k14](/packages/tallstackui-tallstackui)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.6k29.9M146](/packages/laravel-cashier)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)

PHPackages © 2026

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