PHPackages                             fabninjas/job-lens - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. fabninjas/job-lens

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

fabninjas/job-lens
==================

A package that provides a jobs analysis for the application.

v1.0.0(4mo ago)06MITBladePHP ^8.2

Since Feb 26Pushed 4mo agoCompare

[ Source](https://github.com/harshp-fabninjas/joblens-package)[ Packagist](https://packagist.org/packages/fabninjas/job-lens)[ RSS](/packages/fabninjas-job-lens/feed)WikiDiscussions main Synced today

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

Fabninjas/JobLens
=================

[](#fabninjasjoblens)

JobLens is a Laravel package that helps you track slow queue jobs and show analytics for every job in `queue:work` command it self.

---

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

[](#installation)

Install the package via Composer:

```
composer require fabninjas/job-lens
```

---

Publish Files
-------------

[](#publish-files)

Publish the migration and config files:

```
php artisan vendor:publish --tag=joblens-migrations
php artisan vendor:publish --tag=joblens-config
```

Then run migration:

```
php artisan migrate
```

---

Usage
-----

[](#usage)

### Detect Slow Jobs From View

[](#detect-slow-jobs-from-view)

```
http://your_base_app_url/slowjobs
```

### Detect Slow Jobs Command

[](#detect-slow-jobs-command)

```
php artisan joblens:slowjobs
```

---

Start Queue Worker
------------------

[](#start-queue-worker)

Run queue worker to see analytics:

```
php artisan queue:work
```

---

How it works
------------

[](#how-it-works)

- If a job has a **timeout defined**, JobLens considers it slow when it reaches **80% of that timeout**
- If no timeout is defined, it uses a default value from config

---

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

[](#configuration)

You can change settings in:

```
config/joblens.php

```

Example:

```
return [

    // If job has timeout mentioned, then slow job threshold will be 80% of the timeout
    // Otherwise it will use the value below
    'slow_job_threshold' => 2, // seconds

    // Track external API calls during job execution
    'track_external_api' => true,

];
```

---

Features
--------

[](#features)

- Detect slow queue jobs
- Auto calculate threshold based on timeout
- Track external API calls
- Simple Artisan command
- Easy integration

---

License
-------

[](#license)

MIT License

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance77

Regular maintenance activity

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

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

Unknown

Total

1

Last Release

128d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/203782383?v=4)[harshp-fabninjas](/maintainers/harshp-fabninjas)[@harshp-fabninjas](https://github.com/harshp-fabninjas)

---

Top Contributors

[![harshp-fabninjas](https://avatars.githubusercontent.com/u/203782383?v=4)](https://github.com/harshp-fabninjas "harshp-fabninjas (7 commits)")

### Embed Badge

![Health badge](/badges/fabninjas-job-lens/health.svg)

```
[![Health](https://phpackages.com/badges/fabninjas-job-lens/health.svg)](https://phpackages.com/packages/fabninjas-job-lens)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M10](/packages/renatomarinho-laravel-page-speed)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9349.2M282](/packages/illuminate-pipeline)[illuminate/redis

The Illuminate Redis package.

8314.6M374](/packages/illuminate-redis)[illuminate/cookie

The Illuminate Cookie package.

244.6M136](/packages/illuminate-cookie)

PHPackages © 2026

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