PHPackages                             morrislaptop/var-dumper-with-context - 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. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. morrislaptop/var-dumper-with-context

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

morrislaptop/var-dumper-with-context
====================================

Show the line number where the dump method was called

v0.3.2(6y ago)17154.5k—1.3%3[1 PRs](https://github.com/morrislaptop/var-dumper-with-context/pulls)3MITPHP

Since Apr 9Pushed 6y agoCompare

[ Source](https://github.com/morrislaptop/var-dumper-with-context)[ Packagist](https://packagist.org/packages/morrislaptop/var-dumper-with-context)[ RSS](/packages/morrislaptop-var-dumper-with-context/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (1)Versions (8)Used By (3)

VarDumper Component with Context
================================

[](#vardumper-component-with-context)

Using this will show the file and line number which called the dump function. Very handy if you've forgotten where you put that pesky call, especially deep inside the `vendor` directory.

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

[](#installation)

```
composer require symfony/var-dumper --dev && composer require morrislaptop/var-dumper-with-context --dev

```

Usage
-----

[](#usage)

That's it! Simply call `dump()` as you normally would and the file and line number will appear.

Laravel Note
------------

[](#laravel-note)

Laravel 5.7 ships with `beyondcode/laravel-dump-server` which will disable this extension. To enable this extension again, simply add the below to your application's `composer.json` and run `php artisan package:discover` again.

```
    "extra": {
        "laravel": {
            "dont-discover": [
                "beyondcode/laravel-dump-server"
            ]
        }
    },

```

Resources
---------

[](#resources)

- [Symfony VarDumper](https://symfony.com/doc/current/components/var_dumper/introduction.html)

###  Health Score

37

—

LowBetter than 83% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity41

Moderate usage in the ecosystem

Community14

Small or concentrated contributor base

Maturity58

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

Recently: every ~314 days

Total

7

Last Release

2407d ago

### Community

Maintainers

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

---

Top Contributors

[![morrislaptop](https://avatars.githubusercontent.com/u/67807?v=4)](https://github.com/morrislaptop "morrislaptop (14 commits)")

### Embed Badge

![Health badge](/badges/morrislaptop-var-dumper-with-context/health.svg)

```
[![Health](https://phpackages.com/badges/morrislaptop-var-dumper-with-context/health.svg)](https://phpackages.com/packages/morrislaptop-var-dumper-with-context)
```

###  Alternatives

[symfony/stopwatch

Provides a way to profile code

2.8k387.2M918](/packages/symfony-stopwatch)[fruitcake/laravel-debugbar

PHP Debugbar integration for Laravel

19.1k662.9k29](/packages/fruitcake-laravel-debugbar)[jokkedk/webgrind

Webgrind is a Xdebug profiling web frontend in PHP5. It implements a subset of the features of kcachegrind and installs in seconds and works on all platforms. For quick'n'dirty optimizations it does the job.

3.3k193.0k](/packages/jokkedk-webgrind)[koriym/printo

An object graph visualizer.

1421.8M2](/packages/koriym-printo)[soloterm/dumps

A Laravel command to intercept dumps from your Laravel application.

125285.7k3](/packages/soloterm-dumps)[beyondcode/helo-laravel

HELO Laravel debug helper

90360.1k](/packages/beyondcode-helo-laravel)

PHPackages © 2026

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