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(2mo ago)06MITBladePHP ^8.2

Since Feb 26Pushed 2mo 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 1mo ago

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

37

—

LowBetter than 83% of packages

Maintenance86

Actively maintained with recent releases

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

75d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d91a2952a21e7160d9d3c2448ed7b579f680424019deabd0ba6da0c035c8f993?d=identicon)[harshp-fabninjas](/maintainers/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

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M158](/packages/orchestra-canvas)[illuminate/pipeline

The Illuminate Pipeline package.

9446.6M213](/packages/illuminate-pipeline)[illuminate/pagination

The Illuminate Pagination package.

10532.5M862](/packages/illuminate-pagination)[spatie/laravel-pjax

A pjax middleware for Laravel 5

513371.8k11](/packages/spatie-laravel-pjax)[spatie/laravel-mix-preload

Add preload and prefetch links based your Mix manifest

169176.0k2](/packages/spatie-laravel-mix-preload)

PHPackages © 2026

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