Giter Site home page Giter Site logo

kint's Introduction

Kint - debugging helper for PHP developers

Total Downloads

http://raveren.github.com/kint/

Screenshot

Kint for PHP is a powerful and modern, zero-setup replacement for var_dump(), print_r() and debug_backtrace(). You'll wonder how you developed without it.


Installation and usage

<?php
require '/kint/Kint.class.php';

########## DUMP VARIABLE ###########################
Kint::dump($GLOBALS, $_SERVER); // any number of parameters
// or simply use d() as a shorthand:
d($_SERVER);


########## DEBUG BACKTRACE #########################
Kint::trace();
// or via shorthand:
d(1);


########## TEXT-ONLY OUTPUT ########################
s($GLOBALS);


########## MISCELLANEOUS ###########################
// to disable all output
Kint::enabled(false);
// further calls, this one included, will not yield any output
d('Get off my lawn!'); // no effect

Furthermore

  • sd() and dd() are shorthands for s();die; and d();die; respectively.
  • !Kint::dump() and !dd() will display the dump expanded by default.

Visit the project page for documentation, configuration, and more advanced usage examples.

Author

Rokas Šleinius (Raveren)

License

Licensed under the MIT License

kint's People

Contributors

raveren avatar aljinovic avatar rarst avatar tgr avatar will123195 avatar vinculis avatar frosas avatar istvan-ujjmeszaros avatar larrybolt avatar pborreli avatar ulentini avatar mcd-php avatar

Watchers

James Cloos 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.