PHPackages                             rafaatabtahe/api-logger - 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. rafaatabtahe/api-logger

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

rafaatabtahe/api-logger
=======================

A Laravel package for API response time logging and monitoring dashboard

v1.0.0(6mo ago)08MITBladePHP ^8.2

Since Dec 24Pushed 5mo agoCompare

[ Source](https://github.com/khanRafaat/api-logger)[ Packagist](https://packagist.org/packages/rafaatabtahe/api-logger)[ RSS](/packages/rafaatabtahe-api-logger/feed)WikiDiscussions main Synced today

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

API Logger
==========

[](#api-logger)

A Laravel package for API response time logging and monitoring dashboard.

Features
--------

[](#features)

- 📊 **Response Time Logging**: Automatically logs all API response times
- 📈 **Beautiful Dashboard**: Modern monitoring dashboard with charts
- ⚡ **Real-time Stats**: Average, min, max response times
- 🔧 **Configurable**: Customize excluded routes, retention period, branding
- 🚀 **Zero Configuration**: Works out of the box with sensible defaults

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

[](#installation)

### Via Composer

[](#via-composer)

Add the repository to your `composer.json`:

```
{
    "repositories": [
        {
            "type": "path",
            "url": "./packages/rafaatabtahe/api-logger"
        }
    ]
}
```

Then require the package:

```
composer require rafaatabtahe/api-logger
```

### Publish Configuration (Optional)

[](#publish-configuration-optional)

```
php artisan vendor:publish --tag=api-response-logger-config
```

### Publish Views (Optional)

[](#publish-views-optional)

```
php artisan vendor:publish --tag=api-response-logger-views
```

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

[](#configuration)

The configuration file `config/api-response-logger.php` allows you to customize:

```
return [
    // Enable/disable logging
    'enabled' => true,

    // Log file path
    'log_path' => storage_path('logs/api_response_logs.json'),

    // Routes to exclude from logging
    'excluded_routes' => [
        '/',
        '/api-status',
        '/api-stats',
    ],

    // Log retention in hours
    'retention_hours' => 24,

    // Dashboard settings
    'dashboard' => [
        'enabled' => true,
        'app_name' => 'My API',
        'subtitle' => 'API Server',
        'developer' => [
            'name' => 'Your Name',
            'url' => 'https://your-site.com',
        ],
    ],

    // Slow request threshold in ms
    'slow_threshold' => 500,
];
```

Environment Variables
---------------------

[](#environment-variables)

```
API_RESPONSE_LOGGER_ENABLED=true
API_RESPONSE_LOGGER_RETENTION=24
API_RESPONSE_LOGGER_DASHBOARD=true
API_RESPONSE_LOGGER_SLOW_THRESHOLD=500
```

Routes
------

[](#routes)

The package registers the following routes:

RouteDescription`/`Monitoring dashboard`/api-status`JSON status endpoint`/api-stats`JSON statistics endpointLicense
-------

[](#license)

MIT License

Author
------

[](#author)

Rafaat Abtahe

###  Health Score

33

—

LowBetter than 72% of packages

Maintenance69

Regular maintenance activity

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity47

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

Unknown

Total

1

Last Release

191d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/66400873?v=4)[Khan Rafaat Abtahe](/maintainers/khanRafaat)[@khanRafaat](https://github.com/khanRafaat)

---

Top Contributors

[![khanRafaat](https://avatars.githubusercontent.com/u/66400873?v=4)](https://github.com/khanRafaat "khanRafaat (1 commits)")

---

Tags

responseapilaravelmonitoringloggerdashboard

### Embed Badge

![Health badge](/badges/rafaatabtahe-api-logger/health.svg)

```
[![Health](https://phpackages.com/badges/rafaatabtahe-api-logger/health.svg)](https://phpackages.com/packages/rafaatabtahe-api-logger)
```

###  Alternatives

[api-platform/laravel

API Platform support for Laravel

58171.4k14](/packages/api-platform-laravel)[spatie/laravel-flare

Send Laravel errors to Flare

111.4M7](/packages/spatie-laravel-flare)

PHPackages © 2026

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