PHPackages                             simple-as-fuck/laravel-performance-log - 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. simple-as-fuck/laravel-performance-log

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

simple-as-fuck/laravel-performance-log
======================================

Laravel service for logging slow parts of application.

0.5.1(2mo ago)5128.8k↓31%1UnlicensePHPPHP ^8.2CI passing

Since Jun 17Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/simple-as-fuck/laravel-performance-log)[ Packagist](https://packagist.org/packages/simple-as-fuck/laravel-performance-log)[ RSS](/packages/simple-as-fuck-laravel-performance-log/feed)WikiDiscussions 0.5 Synced 1mo ago

READMEChangelog (10)Dependencies (30)Versions (32)Used By (0)

Simple as fuck / Laravel performance log
========================================

[](#simple-as-fuck--laravel-performance-log)

Laravel service for logging slow parts of application.

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

[](#installation)

```
composer require simple-as-fuck/php-performance-log
```

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

[](#configuration)

```
php artisan vendor:publish --tag performance-log-config
```

Support
-------

[](#support)

If any PHP platform requirements in [composer.json](../composer.json) ends with security support, consider package version as unsupported except last version.

[PHP supported versions](https://www.php.net/supported-versions.php).

Http middleware usage
---------------------

[](#http-middleware-usage)

For http request time logging you must register `SimpleAsFuck\PerformanceLog\Middleware\LaravelMiddleware`. Look at [laravel documentation](https://laravel.com/docs/middleware) how to use laravel middlewares.

Recommended usage is register middleware as [global](https://laravel.com/docs/middleware#global-middleware) on **first position** and all of your request will be measured.

If you want register middleware on route group you should configure [middleware priority](https://laravel.com/docs/middleware#sorting-middleware)and put `SimpleAsFuck\PerformanceLog\Middleware\LaravelMiddleware` on **first position**.

Thresholds overwrite
--------------------

[](#thresholds-overwrite)

### Sql

[](#sql)

If you know than some sql is slow, and you are fine with that you can overwrite `'performance_log.database.slow_query_threshold'`or `'performance_log.database.slow_transaction_threshold'` by setting a temporary threshold in `PerformanceLogConfig`.

```
/** @var \SimpleAsFuck\PerformanceLog\Service\PerformanceLogConfig $config */
$config = app()->make(\SimpleAsFuck\PerformanceLog\Service\PerformanceLogConfig::class);

$sqlThreshold = $config->setSlowSqlQueryThreshold(null);
$transactionThreshold = $config->setSlowDbTransactionThreshold(null);

// run some slow queries without annoying performance log

$sqlThreshold->restore();
$transactionThreshold->restore();
```

### Http

[](#http)

If you know that some concrete controller action is slow or should be extra fast, you can overwrite `'performance_log.http.slow_request_threshold'` by setting a temporary threshold. The temporary threshold can be set only once per request and live until request ends.

```
/** @var \SimpleAsFuck\PerformanceLog\Service\PerformanceLogConfig $config */
$config = app()->make(\SimpleAsFuck\PerformanceLog\Service\PerformanceLogConfig::class);

$config->setSlowRequestThreshold(null);

// run some extra slow logic without annoying performance log

// no need for threshold restoring, performance middleware will handle it
```

### Console

[](#console)

If you want to overwrite `'performance_log.console.slow_command_threshold'`, you can do it by setting a temporary threshold. The temporary threshold can be set only once per command run and live until command ends.

```
/** @var \SimpleAsFuck\PerformanceLog\Service\PerformanceLogConfig $config */
$config = app()->make(\SimpleAsFuck\PerformanceLog\Service\PerformanceLogConfig::class);

$config->setSlowCommandThreshold(60); // one minute

// no need for threshold restoring, performance listener will handle it
```

### Job

[](#job)

If you want to overwrite `'performance_log.queue.slow_job_threshold'`, you can set a temporary threshold. The temporary threshold can be set anywhere in job run and live until a job ends.

```
/** @var \SimpleAsFuck\PerformanceLog\Service\PerformanceLogConfig $config */
$config = app()->make(\SimpleAsFuck\PerformanceLog\Service\PerformanceLogConfig::class);

$config->setSlowJobThreshold(10000); // 10 seconds

// no need for threshold restoring, performance listener will handle it
```

Usage with monitoring
---------------------

[](#usage-with-monitoring)

Is recommended send performance warning logs into your monitoring system, so you know what is slow.

For simple monitoring is [laravel sentry](https://docs.sentry.io/platforms/php/guides/laravel/) integration. Sentry integration can collect information about request or command with stacktrace, this can make finding slow query much easier.

###  Health Score

53

—

FairBetter than 97% of packages

Maintenance85

Actively maintained with recent releases

Popularity37

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity65

Established project with proven stability

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

Recently: every ~85 days

Total

32

Last Release

78d ago

PHP version history (4 changes)0.1.0PHP ^7.4|^8.0

0.2.16PHP ^8.0

0.4.1PHP ^8.1

0.5.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/dcf2ca03f52f05685f62127eaeb513e84856c4cbbdc728fb0eb99d6e659a7a37?d=identicon)[Triplkrypl](/maintainers/Triplkrypl)

---

Top Contributors

[![Triplkrypl](https://avatars.githubusercontent.com/u/15320684?v=4)](https://github.com/Triplkrypl "Triplkrypl (71 commits)")

---

Tags

laravellogperformancephpsimple

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/simple-as-fuck-laravel-performance-log/health.svg)

```
[![Health](https://phpackages.com/badges/simple-as-fuck-laravel-performance-log/health.svg)](https://phpackages.com/packages/simple-as-fuck-laravel-performance-log)
```

###  Alternatives

[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9682.1M97](/packages/roots-acorn)[laravel/pulse

Laravel Pulse is a real-time application performance monitoring tool and dashboard for your Laravel application.

1.7k12.1M99](/packages/laravel-pulse)[laravel/cashier

Laravel Cashier provides an expressive, fluent interface to Stripe's subscription billing services.

2.5k25.9M107](/packages/laravel-cashier)[spatie/laravel-health

Monitor the health of a Laravel application

86910.0M83](/packages/spatie-laravel-health)[yadahan/laravel-authentication-log

Laravel Authentication Log provides authentication logger and notification for Laravel.

416632.8k5](/packages/yadahan-laravel-authentication-log)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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