PHPackages                             bycarmona141/king-monitor - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. bycarmona141/king-monitor

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

bycarmona141/king-monitor
=========================

API requests and errors monitor

4.0.0(1y ago)057MITPHP

Since Aug 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/ByCarmona141/king-monitor)[ Packagist](https://packagist.org/packages/bycarmona141/king-monitor)[ RSS](/packages/bycarmona141-king-monitor/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (22)Used By (0)

KingMonitor
===========

[](#kingmonitor)

Monitoring API Requests and Errors for Laravel.

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

[](#installation)

You can install the package via composer:

```
composer require bycarmona141/king-monitor
```

Public Config
-------------

[](#public-config)

You can publish the config file with:

```
php artisan vendor:publish king-monitor-config
```

Variables Config
----------------

[](#variables-config)

Note

The variable values shown are the tool's default values.

The **USER\_ERRORS\_LIMIT** configuration variable sets the error limit for sending an alert.

```
USER_ERRORS_LIMIT=3
```

The **USER\_REQUEST\_LIMIT** configuration variable sets the request limit for sending an alert.

```
USER_REQUEST_LIMIT=1000
```

The **TOKEN\_ERRORS\_LIMIT** configuration variable sets the error limit for a TOKEN to send an alert.

```
TOKEN_ERRORS_LIMIT=3
```

The **TOKEN\_REQUEST\_LIMIT** configuration variable sets the limit of requests for a TOKEN to send an alert.

```
TOKEN_REQUEST_LIMIT=1000
```

The **MONITOR\_ALERT** configuration variable enables the monitor to send alerts.

```
MONITOR_ALERT=true
```

The **USER\_BETWEEN\_ALERT** configuration variable configures the time between user alerts.

```
USER_BETWEEN_ALERT=3600
```

The **USE\_RESOURCE** configuration variable configures whether the application uses RESOURCES

```
USE_RESOURCE=false
```

Usage with collection
---------------------

[](#usage-with-collection)

```
public function kingIndex(): KingCategoryCollection {
    $response = KingCategoryCollection::make(KingCategory::all());

    KingMonitor::monitor($response);

    return $response;
}
```

Use without collection
----------------------

[](#use-without-collection)

```
public function kingIndex(): Response {
    $response = response(Category::all(), 200);

    KingMonitor::monitor($response);

    return $response;
}
```

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

[](#contributing)

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License
-------

[](#license)

[MIT](./LICENSE.md)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance50

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 92.5% 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 ~14 days

Recently: every ~48 days

Total

21

Last Release

366d ago

Major Versions

1.0.1 → 2.0.02024-08-09

2.3.3 → 3.0.02024-10-03

3.1.0 → 4.0.02025-05-13

### Community

Maintainers

![](https://www.gravatar.com/avatar/441959fc6c02933506257dd9911131904dc1d0f755a6d419219c9e7ab284182d?d=identicon)[ByCarmona141](/maintainers/ByCarmona141)

---

Top Contributors

[![15217613](https://avatars.githubusercontent.com/u/146609490?v=4)](https://github.com/15217613 "15217613 (37 commits)")[![ByCarmona141](https://avatars.githubusercontent.com/u/88554229?v=4)](https://github.com/ByCarmona141 "ByCarmona141 (3 commits)")

### Embed Badge

![Health badge](/badges/bycarmona141-king-monitor/health.svg)

```
[![Health](https://phpackages.com/badges/bycarmona141-king-monitor/health.svg)](https://phpackages.com/packages/bycarmona141-king-monitor)
```

###  Alternatives

[psr/log

Common interface for logging libraries

10.4k1.2B9.2k](/packages/psr-log)[itsgoingd/clockwork

php dev tools in your browser

5.9k27.6M94](/packages/itsgoingd-clockwork)[graylog2/gelf-php

A php implementation to send log-messages to a GELF compatible backend like Graylog2.

41838.2M138](/packages/graylog2-gelf-php)[bugsnag/bugsnag-psr-logger

Official Bugsnag PHP PSR Logger.

32132.5M2](/packages/bugsnag-bugsnag-psr-logger)[consolidation/log

Improved Psr-3 / Psr\\Log logger based on Symfony Console components.

15462.2M7](/packages/consolidation-log)[datadog/php-datadogstatsd

An extremely simple PHP datadogstatsd client

19124.6M15](/packages/datadog-php-datadogstatsd)

PHPackages © 2026

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