New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

kotchuprik/laravel-pretty-dump

771 4
Install
composer require kotchuprik/laravel-pretty-dump:dev-master
PHP:>=5.3.0
License:MIT
Last Updated:Apr 21, 2014
Links: GitHub  ·  Packagist
Maintainer: kotchuprik

laravel-pretty-dump

Installation

Add the laravel-pretty-dump with the following composer command:

composer require "kotchuprik/laravel-pretty-dump"

Or add it to the composer.json file:

"require": {
    "laravel/framework": "4.1.*",
    "kotchuprik/laravel-pretty-dump": "dev-master"
}

After adding the require, you must update the composer by executing composer update.

Next, add the kotchuprik\PrettyDump\ServiceProvider to the app/config/app.php providers.

Usage

To use in code:

<?php
$array = array('first' => 42, 'second' => 'another');
PrettyDump::dump($variable)

To use as the blade extension in views:

<div class="container">
    @prettyDump($variable)
</div>

Related Packages

sikessem/devtools

🧪 Tools needed for PHP and Laravel project development and automation.

6,016 1
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

648,266,899 9,701
laravel/framework

The Laravel Framework.

604,216,237 34,982
laravel/tinker

Powerful REPL for the Laravel framework.

512,508,631 7,443