PHPackages                             ampedweb/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. ampedweb/var-dumper-with-context

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

ampedweb/var-dumper-with-context
================================

Show the line number where the dump method was called

v1.1.0(8mo ago)0291MITPHPPHP &gt;=8.1

Since Sep 5Pushed 8mo agoCompare

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

READMEChangelog (3)Dependencies (1)Versions (6)Used By (0)

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.

Cloned and updated from:
------------------------

[](#cloned-and-updated-from)

Original package seems to be abandoned, so I decided to claim and maintain it. Credit to the original author/package is due though!

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.

Env Variables
-------------

[](#env-variables)

If you would like to generate links to the file and line for IDE you can set the following environment variables:

```
VAR_DUMPER_CONTEXT_REMOTE_BASE_PATH=/usr/share/deploys/your-project/current
VAR_DUMPER_CONTEXT_LOCAL_BASE_PATH=/Users/your.user/dev/your-project
VAR_DUMPER_CONTEXT_EDITOR=vscode # vscode, phpstorm, sublime, textmate, emacs, macvim, idea, atom, nova, netbeans
```

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

34

—

LowBetter than 77% of packages

Maintenance65

Regular maintenance activity

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% 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 ~3 days

Total

3

Last Release

240d ago

Major Versions

v0.3.2 → v1.0.02025-09-05

### Community

Maintainers

![](https://www.gravatar.com/avatar/1f5c9f4e29c7fe22627c108733402daff5181384f6f62fcb9ab966afdd1cf342?d=identicon)[ampedweb](/maintainers/ampedweb)

---

Top Contributors

[![ampedweb](https://avatars.githubusercontent.com/u/22029493?v=4)](https://github.com/ampedweb "ampedweb (7 commits)")[![imliam](https://avatars.githubusercontent.com/u/4326337?v=4)](https://github.com/imliam "imliam (1 commits)")

### Embed Badge

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

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

###  Alternatives

[symfony/stopwatch

Provides a way to profile code

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

PHP Debugbar integration for Laravel

19.1k662.9k28](/packages/fruitcake-laravel-debugbar)[spatie/ignition

A beautiful error page for PHP applications.

510147.6M69](/packages/spatie-ignition)[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)

PHPackages © 2026

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