2017 © Pedro Peláez
 

library kint

Kint - debugging helper for PHP developers with clean theme

image

liil/kint

Kint - debugging helper for PHP developers with clean theme

  • PHP
  • 7 Dependents
  • 0 Suggesters
  • 239 Forks
  • 0 Open issues
  • 4 Versions
  • 1 % Grown

The README.md

Kint - debugging helper for PHP developers (Clean Theme)

Total Downloads, (*1)

Screenshot, (*2)

You can found original http://raveren.github.com/kint/, (*3)

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., (*4)


Installation and usage

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

Or, if you use Composer:, (*5)

    "require": {
       ...
       "liil/kint": "v1.0"
    }

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

<?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

// New in 1.0
// Usefull when your working with ajax or rest api request.

\Kint::dump($data, '/www/temp/log.html');

Furthermore

  • sd() and dd() are shorthands for s();die; and d();die; respectively.
  • !Kint::dump() and !dd() will display the dump expanded by default.
  • @Kint::dump() and @d() will return the output instead of displaying it.

Visit the project page for documentation, configuration, and more advanced usage examples., (*7)

Author

Rokas Šleinius (Raveren), (*8)

, (*9)

Contributing

I'd really appreciate it if you forked the wip branch when introducing changes. Currently it's located here:, (*10)

https://github.com/raveren/kint/tree/1.0.0-wip, (*11)

The stable master branch is usually behind and is updated rarely in big batches of tested functionality., (*12)

License

Licensed under the MIT License, (*13)

The Versions

27/07 2014

dev-master

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

Kint - debugging helper for PHP developers with clean theme

  Sources   Download

MIT

The Requires

  • php >=5.2.0

 

debug php kint

27/07 2014

v1.0

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

Kint - debugging helper for PHP developers with clean theme

  Sources   Download

MIT

The Requires

  • php >=5.2.0

 

debug php kint

07/03 2014

dev-1.0.0-wip

dev-1.0.0-wip 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