PHPackages                             tfspl/restlogger - 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. tfspl/restlogger

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

tfspl/restlogger
================

Small laravel package for viewing rest api logs for debugging.

2.1.2(3y ago)8230[1 PRs](https://github.com/sunny-mahajan/laravel-rest-apis-logger/pulls)MITBladePHP &gt;=5.6

Since Oct 28Pushed 3y ago1 watchersCompare

[ Source](https://github.com/sunny-mahajan/laravel-rest-apis-logger)[ Packagist](https://packagist.org/packages/tfspl/restlogger)[ RSS](/packages/tfspl-restlogger/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (6)Versions (7)Used By (0)

Rest APIs Logger
================

[](#rest-apis-logger)

This is a small package that can helps in debugging with API logs.

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

[](#installation)

1. Install the package via composer

```
composer require tfspl/restlogger
```

Usage
-----

[](#usage)

1. Publish the config file with:

```
php artisan vendor:publish --tag=config --provider="TF\Providers\RestLogsServiceProvider"
```

The config file is called *restlogs.php*. Currently supported drivers are *db*, *file* and *redis*.

By default the logger will use *file* to log the data. If you want to use redis for logging make sure

that you have installed the laravel package *predis/predis*. But if you want to use Database for logging,

migrate table by using below command.

You can also configure which fields should not be logged like passwords, secrets, etc.

***You dont need to migrate if you are just using file driver***

```
php artisan migrate
```

2. Add middleware named ***restlogger*** to the route or controller you want to log data
3. Dashboard can be accessible via ***yourdomain.com/restlogs***

Clear the logs
--------------

[](#clear-the-logs)

You can permenently clear the logs by using the following command.

```
php artisan restlogs:clear
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.4% 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 ~115 days

Total

5

Last Release

1193d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7e67707e1ba45cf1aa83c128f4a5983a689437220e5f615c766bed18f9d0232d?d=identicon)[sunny@techformation.co.in](/maintainers/sunny@techformation.co.in)

---

Top Contributors

[![sunny-mahajan](https://avatars.githubusercontent.com/u/11553330?v=4)](https://github.com/sunny-mahajan "sunny-mahajan (38 commits)")[![hitesh-techformation](https://avatars.githubusercontent.com/u/111955602?v=4)](https://github.com/hitesh-techformation "hitesh-techformation (1 commits)")

---

Tags

apiapi-restdebugginglaravelloggerloggingmiddlewarerest-api

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/tfspl-restlogger/health.svg)

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

###  Alternatives

[bagisto/bagisto

Bagisto Laravel E-Commerce

26.2k161.6k7](/packages/bagisto-bagisto)[unopim/unopim

UnoPim Laravel PIM

9.4k1.8k](/packages/unopim-unopim)[blair2004/nexopos

The Free Modern Point Of Sale System build with Laravel, TailwindCSS and Vue.js.

1.2k2.3k](/packages/blair2004-nexopos)[spatie/mailcoach

Self-host Mailcoach

4007.0k](/packages/spatie-mailcoach)

PHPackages © 2026

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