PHPackages                             donatj/drop - 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. donatj/drop

ActiveLibrary

donatj/drop
===========

Simple debugging methods with CLI support

v1.1.1(2y ago)0145.4k↑29.5%20MITPHPPHP &gt;=7.1CI passing

Since Apr 1Pushed 5mo ago2 watchersCompare

[ Source](https://github.com/donatj/drop)[ Packagist](https://packagist.org/packages/donatj/drop)[ Fund](https://www.paypal.me/donatj/15)[ GitHub Sponsors](https://github.com/donatj)[ RSS](/packages/donatj-drop/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (9)Used By (20)

Drop
====

[](#drop)

[![Latest Stable Version](https://camo.githubusercontent.com/827c43784a9067970f5846799706a7b764c55b0c0cf9fe8e285119e4916d98ba/68747470733a2f2f706f7365722e707567782e6f72672f646f6e61746a2f64726f702f76657273696f6e)](https://packagist.org/packages/donatj/drop)[![License](https://camo.githubusercontent.com/86a4a574e3fc0b611a4f6ed47b23139b97a1fe11b7ae6547d0f873fe008df939/68747470733a2f2f706f7365722e707567782e6f72672f646f6e61746a2f64726f702f6c6963656e7365)](https://packagist.org/packages/donatj/drop)[![ci.yml](https://github.com/donatj/drop/actions/workflows/ci.yml/badge.svg?)](https://github.com/donatj/drop/actions/workflows/ci.yml)

> "The most effective debugging tool is still careful thought, coupled with judiciously placed print statements."
>
> — Brian Kernighan, "Unix for Beginners" (1979)

While debugging small issues, you sometimes just want to see the contents of a variable or two. Firing up a full debugger can be overkill for quick problems, and `var_dump(…); exit(1);` is a little unwieldy and only accepts a single argument.

`drop()` is a simple debugging tool that allows you to drop one of more variable's contents in simple format that is friendly and readable on both web and CLI output.

`see()` is similar to `drop()` but it does not halt execution.

Acknowledgements
----------------

[](#acknowledgements)

This was based on the work of my friend [Jon Henderson](https://github.com/henderjon/drop) before it was given its own repo.

Example
-------

[](#example)

```
