GithubHelp home page GithubHelp logo

anystar / krumo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mmucklo/krumo

0.0 1.0 0.0 310 KB

krumo repository (forked, with updates / new features)

License: GNU Lesser General Public License v2.1

PHP 64.66% JavaScript 5.13% CSS 30.22%

krumo's Introduction

Krumo

Krumo is a replacement for print_r() and var_dump(). This is an updated/forked version because the SourceForge.net version appears to have been abandonned.

Installation:

Put this line in your header.php or global project include:

include("/path/to/krumo/class.krumo.php");

or

Add this line to your composer.json "require" section:

composer.json

{
	"require": {
		"mmucklo/krumo": "*"
	}
}

Usage:

After Krumo is loaded you have access to the global Krumo functions: krumo(), k(), and kd().

$arr = array(
	'first' => 'Jason',
	'last'  => 'Doolis',
	'phone' => array(5032612314,4512392014),
	'likes' => array('animal' => 'kitten', 'color' => 'purple'),
);

// Dump out the array, short and long versions
k($arr);
krumo($arr);

// Output the array and then exit();
kd($arr);

// Return the HTML output instead of printing it out
$my_html = krumo($arr, KRUMO_RETURN);

// Output the array with all nodes expanded
krumo($arr, KRUMO_EXPAND_ALL);

// The object based method
$krumo = new Krumo;
$krumo->dump($arr);

krumo's People

Contributors

scottchiefbaker avatar mmucklo avatar bobdenotter avatar almogbaku avatar cbodin avatar jasverix avatar anystar avatar kayalion avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.