PHPackages                             debugged/apilogger - 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. debugged/apilogger

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

debugged/apilogger
==================

A Laravel package for logging API requests and responses

2.0.0(1y ago)037MITPHPPHP ^8.0

Since Dec 27Pushed 1y agoCompare

[ Source](https://github.com/teamdebugged/apilogger)[ Packagist](https://packagist.org/packages/debugged/apilogger)[ RSS](/packages/debugged-apilogger/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (1)Versions (3)Used By (0)

API Logger for Laravel
======================

[](#api-logger-for-laravel)

A simple Laravel package to log API requests and responses.

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

[](#installation)

You can install the package via composer:

```
composer require debugged/apilogger
```

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

[](#configuration)

1. Publish the migration:

```
php artisan vendor:publish --provider="debugged\ApiLogger\ApiLoggerServiceProvider" --tag="migrations"
```

2. Run the migrations:

```
php artisan migrate
```

3. Add the middleware to your `app/Http/Kernel.php` file in the `$middlewareGroups` array:

```
protected $middlewareGroups = [
    'api' => [
        // ... other middleware
        \debugged\ApiLogger\Http\Middleware\APILog::class,
    ],
];
```

Usage
-----

[](#usage)

Once installed and configured, the package will automatically log all API requests and responses to the `logs` table. Each log entry includes:

- HTTP method
- URL
- IP address
- User agent
- Request data
- Response data
- Status code
- Timestamps

License
-------

[](#license)

The MIT License (MIT).

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity45

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 ~0 days

Total

2

Last Release

554d ago

Major Versions

1.0.0 → 2.0.02024-12-27

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/56846044?v=4)[Debugged](/maintainers/debugged)[@debugged](https://github.com/debugged)

---

Top Contributors

[![benjibenn](https://avatars.githubusercontent.com/u/38846638?v=4)](https://github.com/benjibenn "benjibenn (10 commits)")

### Embed Badge

![Health badge](/badges/debugged-apilogger/health.svg)

```
[![Health](https://phpackages.com/badges/debugged-apilogger/health.svg)](https://phpackages.com/packages/debugged-apilogger)
```

###  Alternatives

[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k7](/packages/statamic-rad-pack-runway)[open-telemetry/opentelemetry-auto-laravel

OpenTelemetry auto-instrumentation for Laravel

592.7M9](/packages/open-telemetry-opentelemetry-auto-laravel)[guanguans/laravel-exception-notify

Monitor exception and report to the notification channels(Log、Mail、AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

14845.8k1](/packages/guanguans-laravel-exception-notify)[api-platform/laravel

API Platform support for Laravel

58171.5k14](/packages/api-platform-laravel)[nightowl/agent

NightOwl monitoring agent — collects telemetry from laravel/nightwatch and writes to PostgreSQL

771.7k](/packages/nightowl-agent)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21318.6k3](/packages/ecotone-laravel)

PHPackages © 2026

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