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

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

magentron/laravel-api-logger
============================

Laravel API logger to log responses and requests to file.

0.2.0-beta(5y ago)11.9k4GPL-3.0-or-laterPHPCI failing

Since Nov 28Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Magentron/laravel-api-logger)[ Packagist](https://packagist.org/packages/magentron/laravel-api-logger)[ Docs](https://github.com/Magentron/laravel-api-logger)[ RSS](/packages/magentron-laravel-api-logger/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (10)Versions (5)Used By (0)

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

[](#laravel-api-logger)

[![Laravel 6.10.12+](https://camo.githubusercontent.com/3ef5bc0922cb86a8b1ab725ac44381fd69bfbc33b1cca84249f58b0cf1fa0292/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d362b2d677265656e2e737667)](https://github.com/laravel/framework/)

[Laravel](https://laravel.com/) component to log API requests and responses to file.

Requirements
============

[](#requirements)

Perhaps it works with lesser versions as well, but this is untested.

- PHP 5.6 or above
- Laravel 5.4 or above

Installation
============

[](#installation)

Add package via composer:

```
composer require magentron/laravel-api-logger

```

For Laravel version &lt; 5.5, edit `config/app.php`, add the following to the `providers` array:

```
Magentron\ApiLogger\Providers\ServiceProvider::class,

```

Usage
=====

[](#usage)

```
TODO

```

TODO
====

[](#todo)

- Use Monolog or other log writers to support other destinations than file system
- Restrict logging to specific HTTP methods and/or URI's
- Specify HTTP status codes to log
- Write tests and gain 100% code coverage

Author
======

[](#author)

[Jeroen Derks](https://www.phpfreelancer.nl), a.k.a [Magentron](https://github.com/Magentron)

Inspiration
===========

[](#inspiration)

This project was inspired by the following projects:

- [Spatie HTTP Logger](https://github.com/spatie/laravel-http-logger)
- [Prettus HTTP request logger](https://github.com/prettus/laravel-request-logger)

License
=======

[](#license)

laravel-api-logger is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

laravel-api-logger is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with laravel-api-logger. If not, see .

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

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

Total

4

Last Release

1912d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/853900?v=4)[Jeroen D.](/maintainers/Magentron)[@Magentron](https://github.com/Magentron)

---

Top Contributors

[![Magentron](https://avatars.githubusercontent.com/u/853900?v=4)](https://github.com/Magentron "Magentron (6 commits)")

---

Tags

apilaravelloggerlaravel-api-logger

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

###  Alternatives

[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)[moesif/moesif-laravel

Moesif Collection/Data Ingestion Middleware for Laravel

1065.8k](/packages/moesif-moesif-laravel)[ucan-lab/laravel-blink-logger

Comprehensive Logging Tool for Laravel.

126.1k](/packages/ucan-lab-laravel-blink-logger)

PHPackages © 2026

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