PHPackages                             helloarman/vardump - 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. helloarman/vardump

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

helloarman/vardump
==================

This will help you to use var\_dump() and print\_r() on your blade with the &lt;pre&gt; tag. People who are familiar with these php functions will benefit from this.

1.2.0(2y ago)239MITPHP

Since May 28Pushed 2y ago1 watchersCompare

[ Source](https://github.com/helloarman/vardump)[ Packagist](https://packagist.org/packages/helloarman/vardump)[ RSS](/packages/helloarman-vardump/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)DependenciesVersions (11)Used By (0)

Vardump
=======

[](#vardump)

This will help you to use var\_dump() and print\_r() on your blade with the pre tag. People who are familiar with these php functions will benefit from this.

Package For
-----------

[](#package-for)

- Laravel

Installation
------------

[](#installation)

Goto your laravel Project and Run -

```
  $ composer require helloarman/vardump
```

Explantation
------------

[](#explantation)

print\_r() is a helpful function in PHP for printing the contents of an associative array. It displays the structure and values of the array in a more human-readable format, which can be useful for debugging and understanding the data.

```
Array
(
    [0] => fish
    [1] => flower
    [fruit] => Array
        (
            [0] => mango
            [1] => apple
        )
)
```

If you want to write the output of print\_r() to a file with a well-formatted structure, including indentation and line breaks, you can make use of the pre tag in HTML. The pre tag preserves the formatting of the text within it, including white spaces, line breaks, and indentation. It will seem like this -

```
echo "";
    print_r($data);
echo "";
die();
```

Each and every time its hard to write this while debugging. so I made this package for making easy access of it.

Good thing is, you can also pass an Object! it will convert that on -

```
echo "";
    print_r($data->toArray());
echo "";
die();
```

Also, sometime we need to check data type of our variable.

```
var_dump($variable);
die();
```

It will also done by this package.

Usage/Examples
--------------

[](#usageexamples)

So now you can use those php function by a single laravel function -

### On PHP File call this function by -

[](#on-php-file-call-this-function-by--)

```
ar($data)
```

### You can also call this function on your blade by adding @ as prefix -

[](#you-can-also-call-this-function-on-your-blade-by-adding--as-prefix--)

```
@ar($data)
```

Pass your any variable into it. It will show output on your view page.

Badges
------

[](#badges)

[![MIT License](https://camo.githubusercontent.com/784362b26e4b3546254f1893e778ba64616e362bd6ac791991d2c9e880a3a64e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d677265656e2e737667)](https://choosealicense.com/licenses/mit/)

[![MIT License](https://camo.githubusercontent.com/638b50c9abe6ab4d8fe5e085a402aa00753052b6faf0459650c0d8d8347cc83d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f666f726b732f68656c6c6f61726d616e2f76617264756d70)](https://github.com/helloarman)

[![MIT License](https://camo.githubusercontent.com/7607f3b0b6d13665c49bdd24a455e22619949c8eaabcd03f262219a5eaa579f6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c2d5061636b6167652d726564)](https://laravel.com)

Feedback
--------

[](#feedback)

As this is the first release, There might be some improvement. If you need any addon or modification then do not hesitate to mention me. Contact me on -

-

Authors
-------

[](#authors)

- Arman Rahman ( [@helloarman](https://www.github.com/helloarman) )

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~4 days

Recently: every ~10 days

Total

10

Last Release

1044d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a6210bd5bd5565c9e871eb9ea8c253e5e05382d583c181d0b02eedec4ba1a3c9?d=identicon)[helloarman](/maintainers/helloarman)

---

Top Contributors

[![helloarman](https://avatars.githubusercontent.com/u/66985321?v=4)](https://github.com/helloarman "helloarman (21 commits)")

---

Tags

phplaraveldebuggingdevelopmentvardump

### Embed Badge

![Health badge](/badges/helloarman-vardump/health.svg)

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

###  Alternatives

[laracraft-tech/laravel-xhprof

Easy XHProf setup to profile your laravel application!

235321.4k](/packages/laracraft-tech-laravel-xhprof)[jbzoo/jbdump

Script for debug and dump PHP variables and other stuff. This tool is a nice replacement for print\_r() and var\_dump() functions.

211.1M3](/packages/jbzoo-jbdump)[bavix/laravel-xhprof

Quick profiling of your code for Laravel

22156.6k](/packages/bavix-laravel-xhprof)[konafets/typo3_debugbar

Utilizes the PHP Debugbar to provide information of the system health to the frontend.

3621.4k](/packages/konafets-typo3-debugbar)[thehocinesaad/laravel-error-ai

This package adds Ask AI button to the error page.

2214.4k](/packages/thehocinesaad-laravel-error-ai)

PHPackages © 2026

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