PHPackages                             nunomaduro/dig - 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. [CLI &amp; Console](/categories/cli)
4. /
5. nunomaduro/dig

ActiveLibrary[CLI &amp; Console](/categories/cli)

nunomaduro/dig
==============

A beautiful debug tool for the command line.

v0.0.2(5y ago)42171MITPHPPHP ^7.4 || ^8.0

Since Dec 18Pushed 5y ago2 watchersCompare

[ Source](https://github.com/nunomaduro/dig)[ Packagist](https://packagist.org/packages/nunomaduro/dig)[ Fund](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=66BYDWAT92N6L)[ GitHub Sponsors](https://github.com/nunomaduro)[ RSS](/packages/nunomaduro-dig/feed)WikiDiscussions master Synced 6d ago

READMEChangelogDependencies (4)Versions (3)Used By (0)

 [![Dig code example](https://raw.githubusercontent.com/nunomaduro/dig/master/art/example.png)](https://raw.githubusercontent.com/nunomaduro/dig/master/art/example.png)

 [![Build Status](https://camo.githubusercontent.com/085fd98c7641186c73bc55fbef3ada4adf700c78b0954ab5ada97ba38c21fc41/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6e756e6f6d616475726f2f6469672f537461746963253230416e616c797369732e737667) ](https://github.com/nunomaduro/dig/actions)[![Total Downloads](https://camo.githubusercontent.com/033ff7d87320515779da24c562109e43c081eeff3ab506369c6214afd91a8a90/68747470733a2f2f706f7365722e707567782e6f72672f6e756e6f6d616475726f2f6469672f646f776e6c6f616473)](https://packagist.org/packages/nunomaduro/dig) [![Latest Stable Version](https://camo.githubusercontent.com/88958d56aa24fa47f218f574e33c407a6795b7dea1aaefe317ad4792d52650e9/68747470733a2f2f706f7365722e707567782e6f72672f6e756e6f6d616475726f2f6469672f76)](https://packagist.org/packages/nunomaduro/dig) [![License](https://camo.githubusercontent.com/48becf0d31a583cea8226d4894279bd876426ec882b9a9abe0fda7b3329febf0/68747470733a2f2f706f7365722e707567782e6f72672f6e756e6f6d616475726f2f6469672f6c6963656e7365)](https://packagist.org/packages/nunomaduro/dig)

---

Dig was created by, and is maintained by **[Nuno Maduro](https://github.com/nunomaduro)**, and is a beautiful debug tool for the command line.

Installation &amp; Usage
------------------------

[](#installation--usage)

> **Requires [PHP 7.4+](https://php.net/releases/)**

Require Dig using [Composer](https://getcomposer.org):

```
composer require nunomaduro/dig --dev
```

Usage
-----

[](#usage)

### `caller()`

[](#caller)

The `caller()` method provide the function or method that invoked the currently executing function.

```
dig()->caller();
```

Contributing
------------

[](#contributing)

Thank you for considering to contribute to Dig. All the contribution guidelines are mentioned [here](CONTRIBUTING.md).

You can have a look at the [CHANGELOG](CHANGELOG.md) for constant updates &amp; detailed information about the changes. You can also follow the twitter account for latest announcements or just come say hi!: [@enunomaduro](https://twitter.com/enunomaduro)

License
-------

[](#license)

Dig is an open-sourced software licensed under the [MIT license](LICENSE.md).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.7% 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 ~0 days

Total

2

Last Release

1976d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/86cfef5c1f5195df1a9db17a5f8ecb34455e1f0133a725de9acf7f2fb26ac6a1?d=identicon)[nunomaduro](/maintainers/nunomaduro)

---

Top Contributors

[![nunomaduro](https://avatars.githubusercontent.com/u/5457236?v=4)](https://github.com/nunomaduro "nunomaduro (11 commits)")[![caneco](https://avatars.githubusercontent.com/u/502041?v=4)](https://github.com/caneco "caneco (1 commits)")

---

Tags

clidebugphpphpcliconsoledebugcommand

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/nunomaduro-dig/health.svg)

```
[![Health](https://phpackages.com/badges/nunomaduro-dig/health.svg)](https://phpackages.com/packages/nunomaduro-dig)
```

###  Alternatives

[nunomaduro/termwind

It's like Tailwind CSS, but for the console.

2.5k239.8M286](/packages/nunomaduro-termwind)[buggregator/trap

A simple and powerful tool for debugging PHP applications.

2591.7M40](/packages/buggregator-trap)[nunomaduro/laravel-console-task

Laravel Console Task is a output method for your Laravel/Laravel Zero commands.

2582.1M11](/packages/nunomaduro-laravel-console-task)[mehrancodes/laravel-harbor

A CLI tool to Quickly create On-Demand preview environment for your apps.

9989.0k](/packages/mehrancodes-laravel-harbor)[nunomaduro/collision-adapter-symfony

Collision's adapter for Symfony applications. Error Reporting for console/command-line PHP applications.

4536.8k3](/packages/nunomaduro-collision-adapter-symfony)[php-school/learn-you-php

An introduction to PHP's core features: i/o, http, arrays, exceptions and so on.

3192.0k](/packages/php-school-learn-you-php)

PHPackages © 2026

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