liil/kint 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

liil/kint

Composer 安装命令:

composer require liil/kint

包简介

Kint - debugging helper for PHP developers with clean theme

README 文档

README

Total Downloads

Screenshot

You can found original http://raveren.github.com/kint/

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';

Or, if you use Composer:

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

That's it, you can now use Kint to debug your code:

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

Author

Rokas Šleinius (Raveren)

Contributing

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

https://github.com/raveren/kint/tree/1.0.0-wip

The stable master branch is usually behind and is updated rarely in big batches of tested functionality.

License

Licensed under the MIT License

统计信息

  • 总下载量: 7.2k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 4
  • 依赖项目数: 7
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 286
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-03-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固