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 1mo ago

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 43% of packages

Maintenance40

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity44

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

508d ago

Major Versions

1.0.0 → 2.0.02024-12-27

### Community

Maintainers

![](https://www.gravatar.com/avatar/8ee026f875b54a571c07598bed7a6c0633ba269f328f30dfa14fcefefc6f81e8?d=identicon)[debugged](/maintainers/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

[overtrue/laravel-query-logger

A dev tool to log all queries for laravel application.

413307.5k6](/packages/overtrue-laravel-query-logger)[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).

14642.7k1](/packages/guanguans-laravel-exception-notify)[regulus/activity-log

A clean and simple Laravel 5 activity logger for monitoring user activity on a website or web application.

164220.1k2](/packages/regulus-activity-log)

PHPackages © 2026

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