2017 © Pedro Peláez
 

library var-dumper-with-context

Show the line number where the dump method was called

image

morrislaptop/var-dumper-with-context

Show the line number where the dump method was called

  • Monday, January 22, 2018
  • by morrislaptop
  • Repository
  • 1 Watchers
  • 6 Stars
  • 7,098 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 81 % Grown

The README.md

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., (*1)

Installation

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

Usage

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

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., (*3)

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

Resources

The Versions

22/01 2018

dev-master

9999999-dev

Show the line number where the dump method was called

  Sources   Download

MIT

The Development Requires

22/01 2018

0.2.0

0.2.0.0

Show the line number where the dump method was called

  Sources   Download

MIT

The Development Requires

06/05 2016

0.1.0

0.1.0.0

Show the line number where the dump method was called

  Sources   Download

MIT

The Development Requires

24/04 2016

0.0.2

0.0.2.0

Show the line number where the dump method was called

  Sources   Download

MIT

The Development Requires

09/04 2016

0.0.1

0.0.1.0

Show the line number where the dump method was called

  Sources   Download

MIT

The Development Requires