PHPackages                             azeemade/db-logs - 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. azeemade/db-logs

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

azeemade/db-logs
================

A Laravel package to log request and response information in a database.

0.0.1(6mo ago)02MITPHPPHP ^8.1

Since Dec 28Pushed 5mo agoCompare

[ Source](https://github.com/azeemade/db-logs)[ Packagist](https://packagist.org/packages/azeemade/db-logs)[ RSS](/packages/azeemade-db-logs/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (6)Versions (2)Used By (0)

Laravel DB Logs
===============

[](#laravel-db-logs)

A powerful, secure, and flexible logging package for Laravel that captures both inbound (user requests) and outbound (HTTP client) traffic. Designed for applications that need rigorous audit trails, debugging of third-party integrations, and request/response monitoring.

Key Features
------------

[](#key-features)

- **Inbound Traffic Logging**: Automatically log incoming user requests, including headers, bodies, IP, User ID, and Session ID.
- **Outbound Traffic Logging**: Capture all HTTP Client requests (`Http::get`, `Http::post`, etc.) automatically.
- **Trigger Context**: For outbound requests, see exactly what user input (payload) triggered the API call.
- **Smart Error Capture**: Automatically prioritizes error logs. Captures full stack traces and error messages for exceptions.
- **Security First**:
    - Configurable **encryption** for sensitive fields (e.g., password, ssn, pin).
    - **Secure Dashboard** with on-demand decryption.
    - **API Endpoint** protected by a mutable passkey.
- **Dashboard**: A clean, responsive UI (similar to Horizon) to browse, filter, and inspect logs.
- **Configurable Pruning**: Automatically clean up old logs to keep your database healthy.

Basic Examples
--------------

[](#basic-examples)

### 1. Inbound Logging

[](#1-inbound-logging)

Just install the package, and it starts working. By default, it logs **errors only** (status &gt;= 400) to keep noise low, but you can configure it to log everything.

### 2. Outbound Logging

[](#2-outbound-logging)

When you make a request using Laravel's HTTP Client:

```
Http::post('https://third-party-api.com/v1/charge', [
    'amount' => 100,
    'card_number' => '4242424242424242' // This will be encrypted in logs!
]);
```

The package logs the request URL, headers, body, response status, and body.

### 3. API Access

[](#3-api-access)

Retrieve logs programmatically using the secure API endpoint:

```
curl -X POST https://your-app.com/db-logs/api/logs \
     -d "limit=10" \
     -d "passkey=YOUR_SECURE_KEY"
```

Documentation
-------------

[](#documentation)

For full installation and configuration instructions, please read [SETUP.md](setup.md).

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance69

Regular maintenance activity

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity33

Early-stage or recently created project

 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

188d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/59115414?v=4)[Azeem](/maintainers/azeemade)[@azeemade](https://github.com/azeemade)

---

Top Contributors

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

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/azeemade-db-logs/health.svg)

```
[![Health](https://phpackages.com/badges/azeemade-db-logs/health.svg)](https://phpackages.com/packages/azeemade-db-logs)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k91.9k1](/packages/mike-bronner-laravel-model-caching)[api-platform/laravel

API Platform support for Laravel

58171.6k14](/packages/api-platform-laravel)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45444.2k1](/packages/pressbooks-pressbooks)[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)[fleetbase/core-api

Core Framework and Resources for Fleetbase API

1235.9k20](/packages/fleetbase-core-api)

PHPackages © 2026

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