2017 © Pedro Peláez
 

library kint

Kint - debugging helper for PHP developers

image

voku/kint

Kint - debugging helper for PHP developers

  • Saturday, August 12, 2017
  • by voku
  • Repository
  • 3 Watchers
  • 0 Stars
  • 4,651 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 239 Forks
  • 0 Open issues
  • 21 Versions
  • 0 % Grown

The README.md

Stories in Ready Build Status Coverage Status Scrutinizer Code Quality Codacy Badge SensioLabsInsight Dependency Status Latest Stable Version Total Downloads Latest Unstable Version PHP 7 ready License, (*1)

There is a new maintained version of Kint! -> (kint-php)[https://github.com/kint-php/kint] thx@jnvsor

Screenshot, (*2)

What am I looking at?

At first glance Kint is just a pretty replacement for var_dump(), print_r() and debug_backtrace()., (*3)

Installation and Usage

Composer:, (*4)

"require": {
   "voku/kint": "^2.0"
}

Or just run composer require voku/kint, (*5)

That's it, you can now use Kint to debug your code:, (*6)

use kint\Kint;

Kint::enabled(true);

########## DUMP VARIABLE ###########################
Kint::dump($GLOBALS, $_SERVER); // pass any number of parameters

// or simply use d() as a shorthand:
\kint\d($_SERVER);


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


############# BASIC OUTPUT #########################
# this will show a basic javascript-free display
\kint\s($GLOBALS);


########## MISCELLANEOUS ###########################
# this will disable kint completely
Kint::enabled(false);

\kint\dd('Get off my lawn!'); // no effect

Kint::enabled(true);
\kint\dd( 'this line will stop the execution flow because Kint was just re-enabled above!' );

WARNING / INFO

  • Kint is disabled by default, call kint\Kint::enabled(true); to turn its funcionality on. The best practice is to enable Kint in DEVELOPMENT environment only (or for example Kint::enabled($_SERVER['REMOTE_ADDR'] === '<your IP>');) - so even if you accidentally leave a dump in production, no one will know.

Author

Rokas Šleinius (Raveren), (*7)

License

Licensed under the MIT License, (*8)

The Versions

12/08 2017

dev-master

9999999-dev https://github.com/raveren/kint

Kint - debugging helper for PHP developers

  Sources   Download

MIT

The Requires

 

The Development Requires

debug php kint

12/08 2016

2.0.10

2.0.10.0 https://github.com/raveren/kint

Kint - debugging helper for PHP developers

  Sources   Download

MIT

The Requires

 

The Development Requires

debug php kint

12/08 2016

2.0.9

2.0.9.0 https://github.com/raveren/kint

Kint - debugging helper for PHP developers

  Sources   Download

MIT

The Requires

 

The Development Requires

debug php kint

20/07 2016

2.0.8

2.0.8.0 https://github.com/raveren/kint

Kint - debugging helper for PHP developers

  Sources   Download

MIT

The Requires

 

The Development Requires

debug php kint

19/06 2016

2.0.7

2.0.7.0 https://github.com/raveren/kint

Kint - debugging helper for PHP developers

  Sources   Download

MIT

The Requires

 

The Development Requires

debug php kint

17/06 2016

2.0.6

2.0.6.0 https://github.com/raveren/kint

Kint - debugging helper for PHP developers

  Sources   Download

MIT

The Requires

 

The Development Requires

debug php kint

16/06 2016

dev-analysis-qJGWNV

dev-analysis-qJGWNV https://github.com/raveren/kint

Kint - debugging helper for PHP developers

  Sources   Download

MIT

The Requires

 

The Development Requires

debug php kint

29/04 2016

2.0.5

2.0.5.0 https://github.com/raveren/kint

Kint - debugging helper for PHP developers

  Sources   Download

MIT

The Requires

 

The Development Requires

debug php kint

25/04 2016

2.0.4

2.0.4.0 https://github.com/raveren/kint

Kint - debugging helper for PHP developers

  Sources   Download

MIT

The Requires

 

The Development Requires

debug php kint

25/04 2016

2.0.3

2.0.3.0 https://github.com/raveren/kint

Kint - debugging helper for PHP developers

  Sources   Download

MIT

The Requires

 

The Development Requires

debug php kint

25/04 2016

2.0.2

2.0.2.0 https://github.com/raveren/kint

Kint - debugging helper for PHP developers

  Sources   Download

MIT

The Requires

 

The Development Requires

debug php kint

25/04 2016

2.0.1

2.0.1.0 https://github.com/raveren/kint

Kint - debugging helper for PHP developers

  Sources   Download

MIT

The Requires

 

The Development Requires

debug php kint

25/04 2016

2.0.0

2.0.0.0 https://github.com/raveren/kint

Kint - debugging helper for PHP developers

  Sources   Download

MIT

The Requires

 

The Development Requires

debug php kint

16/09 2015

1.0.10

1.0.10.0 https://github.com/raveren/kint

Kint - debugging helper for PHP developers

  Sources   Download

MIT

The Requires

  • php >=5.1.0

 

debug php kint

02/07 2015

1.0.3

1.0.3.0 https://github.com/raveren/kint

Kint - debugging helper for PHP developers

  Sources   Download

MIT

The Requires

  • php >=5.1.0

 

debug php kint

02/07 2015

1.0.6

1.0.6.0 https://github.com/raveren/kint

Kint - debugging helper for PHP developers

  Sources   Download

MIT

The Requires

  • php >=5.1.0

 

debug php kint

03/06 2015

1.0.2

1.0.2.0 https://github.com/raveren/kint

Kint - debugging helper for PHP developers

  Sources   Download

MIT

The Requires

  • php >=5.1.0

 

debug php kint

21/05 2015

1.0.0

1.0.0.0 https://github.com/raveren/kint

Kint - debugging helper for PHP developers

  Sources   Download

MIT

The Requires

  • php >=5.1.0

 

debug php kint

03/02 2015

dev-deprecated-v0.9

dev-deprecated-v0.9 https://github.com/raveren/kint

Kint - debugging helper for PHP developers

  Sources   Download

MIT

The Requires

  • php >=5.2.0

 

debug php kint

11/08 2014

v0.9.1

0.9.1.0 https://github.com/raveren/kint

Kint - debugging helper for PHP developers

  Sources   Download

MIT

The Requires

  • php >=5.2.0

 

debug php kint

13/08 2013

v0.9

0.9.0.0 https://github.com/raveren/kint

Kint - debugging helper for PHP developers

  Sources   Download

MIT

The Requires

  • php >=5.2.0

 

debug php kint