Helper to dd with more comfort.

Installs: 2 931

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 1

Open Issues: 0

Type:package

v1.0.3 2021-06-11 12:30 UTC

This package is auto-updated.

Last update: 2024-05-11 19:24:32 UTC


README

This package provides a helper method, ddi(). This helper works just like the usual dd() helper that you know and love but it will add an additional method signature to the dump. That way you always know where the dd is taking place.

Installation

To install this package you can just require it via composer.

composer require tjventurini/ddi

Usage and Example

namespace Acme\Foo;

class Bar {
    public function baz() {
        // dump and die
        ddi('example');

        // dump and continue
        dumpi('example');
    }
}

This will add the string Acme\Foo\Bar::baz as first variable to your dd() output. The dumpi() helper method works the same way, but for the dump() helper method.

For more information about the dd() and dump() method take a look at the documentation.