{"id":15022964,"url":"https://github.com/kktsvetkov/krumo","last_synced_at":"2025-04-13T08:40:44.930Z","repository":{"id":57007279,"uuid":"111292802","full_name":"kktsvetkov/krumo","owner":"kktsvetkov","description":"Krumo: Structured information display solution for PHP","archived":false,"fork":false,"pushed_at":"2021-06-04T07:24:10.000Z","size":185,"stargazers_count":82,"open_issues_count":3,"forks_count":15,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-27T00:13:36.243Z","etag":null,"topics":["debug","debugging","krumo","php","php5","php7","print-r","var-dump","var-export"],"latest_commit_sha":null,"homepage":"http://krumo.kaloyan.info","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kktsvetkov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-19T12:25:47.000Z","updated_at":"2025-02-20T02:06:30.000Z","dependencies_parsed_at":"2022-08-21T12:40:41.110Z","dependency_job_id":null,"html_url":"https://github.com/kktsvetkov/krumo","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kktsvetkov%2Fkrumo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kktsvetkov%2Fkrumo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kktsvetkov%2Fkrumo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kktsvetkov%2Fkrumo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kktsvetkov","download_url":"https://codeload.github.com/kktsvetkov/krumo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248686003,"owners_count":21145405,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["debug","debugging","krumo","php","php5","php7","print-r","var-dump","var-export"],"created_at":"2024-09-24T19:58:35.152Z","updated_at":"2025-04-13T08:40:44.908Z","avatar_url":"https://github.com/kktsvetkov.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Package Version](https://poser.pugx.org/kktsvetkov/krumo/v/stable)](https://packagist.org/packages/kktsvetkov/krumo) \n[![Total Downloads](https://poser.pugx.org/kktsvetkov/krumo/downloads)](//packagist.org/packages/kktsvetkov/krumo)\n[![License](https://poser.pugx.org/kktsvetkov/krumo/license)](//packagist.org/packages/kktsvetkov/krumo)\n\n# Krumo: PHP structured information display solution\n\n![KRUMO - version 2.0 of print_r(); and var_dump();](http://krumo.kaloyan.info/images/logo.png)\n\nKrumo is a debugging tool, which displays structured information about any PHP variable.\nIt is a nice replacement for `print_r()` or `var_dump()` which are used by a lot of PHP developers.\n\n## Overview\n\nTo put it simply, Krumo is a replacement for `print_r()` and `var_dump()`. By definition Krumo\nis a debugging tool, which displays structured information about any PHP variable.\n\nA lot of developers use `print_r()` and `var_dump()` in the means of debugging\ntools. Although they were intended to present human readable information about a\nvariable, we can all agree that in general they are not. Krumo is an\nalternative: it does the same job, but it presents the information beautified\nusing CSS/JS/HTML.\n\n## Installation\n\nThis library can be installed in autoloadable way using Composer as [kktsvetkov/krumo](https://packagist.org/packages/kktsvetkov/krumo).\n\n```sh\nphp composer.phar require kktsvetkov/krumo\n```\n\nIn the rare occasion that you are dealing with some legacy code that\nhas not yet embraced Composer, you can also download this package,\nand include `class.krumo.php` in your project, or make it accessible\nsomewhere in your `INCLUDE_PATH`:\n\n```php\ninclude 'class.krumo.php';\n```\n\nMore or less, that's it.\n\n## Examples\n\nHere's a basic example, which will return a report on the array variable passed\nas argument to it:\n```php\n\tkrumo(array('a1'=\u003e 'A1', 3, 'red'));\n```\n\nYou can dump simultaneously more then one variable - here's another example:\n```php\n\tkrumo($_SERVER, $_REQUEST);\n```\nYou probably saw from the examples above that some of the nodes are expandable,\nso if you want to inspect the nested information, click on them and they will\nexpand; if you do not need that information shown simply click again on it to\ncollapse it. Here's an example to test this:\n```php\n\t$x1-\u003ex2-\u003ex3-\u003ex4-\u003ex5-\u003ex6-\u003ex7-\u003ex8-\u003ex9 = 'X10';\n\tkrumo($x1);\n```\nThe krumo() is the only standalone function from the package, and this is\nbecause basic dumps about variables (like `print_r()` or `var_dump()`) are the most\ncommon tasks such functionality is used for. The rest of the functionality can\nbe called using static calls to the Krumo class. Here are several more examples:\n```php\n\t// print a debug backgrace\n \tkrumo::backtrace();\n\n\t// print all the included(or required) files\n\tkrumo::includes();\n\n\t// print all the included functions\n\tkrumo::functions();\n\n\t// print all the declared classes\n\tkrumo::classes();\n\n\t// print all the defined constants\n\tkrumo::defines();\n```\n ... and so on, etc.\n\n\nPlease note that the first time you call `Krumo` the dump it produces also\nprints the CSS and the JS code used to expand/collapse the dump nodes.\n\n### krumo::fetch()\n\nIf you want to get the output returned instead of printed, you can use\nthe `krumo::fetch()` method for that:\n```php\n\t$a = krumo::fetch($app, $env);\n```\n\n### krumo::queue()\n\nIt's been a valid complain that sometimes Krumo output is called in the middle\nof some opened HTML tag, and that breaks the output of both that tag and Krumo\nitself. You can use `krumo::queue()` instead of `krumo::dump()` to solve that\nproblem, since `krumo::queue()` will print its output at the end of the script:\n```php\n\tkrumo::queue($request);\n```\n\n## Skins\n\nThere are several skins pre-installed with this package, but if you wish you can\ncreate skins of your own. The skins are simply CSS files that are prepended to\nthe result that Krumo prints.\n\nTo the Krumo skin, you have to set it at `krumo::$skin`:\n```php\n\tkrumo::$skin = 'blue';\n```\n\nHere is a list of the pre-installed skins in Krumo\n\n### skins/kaloyan.info\n\n![skins/kaloyan.info](http://krumo.kaloyan.info/screenshots/krumo_kaloyan_info_theme.png)\n\nThis is the new default theme, `kaloyan.info`. It is not as color heavy as the other skins\n```php\n\t// set up using the \"kaloyan.info\" skin\n\tkrumo::$skin = 'kaloyan.info';\n```\n\n### skins/default\n\n![skins/default](http://krumo.kaloyan.info/screenshots/krumo_default_theme.png)\n\nAs the name suggests, this is the old \"default\" theme.\n```php\n\t// set up using the \"default\" skin\n\tkrumo::$skin = 'default';\n```\n\n### skins/blue\n\n![skins/blue](http://krumo.kaloyan.info/screenshots/krumo_blue_theme.png)\n\nThis is a blue version of the old default theme\n```php\n\t// set up using the \"blue\" skin\n\tkrumo::$skin = 'blue';\n```\n\n### skins/orange\n\n![skins/orange](http://krumo.kaloyan.info/screenshots/krumo_orange_theme.png?s=o)\n\nThis is an orange version of the old default theme\n```php\n\t// set up using the \"orange\" skin\n\tkrumo::$skin = 'orange';\n```\n\n### skins/green\n\n![skins/green](http://krumo.kaloyan.info/screenshots/krumo_green_theme.png)\n\nThis is a green version of the old default theme\n```php\n\t// set up using the \"green\" skin\n\tkrumo::$skin = 'green';\n```\n\n## License\n\nThis project is released under GNU Lesser General Public License v2.1\n[opensource.org/licenses/LGPL-2.1](https://opensource.org/licenses/LGPL-2.1)\n\n## History\n\nThe project was first hosted and maintained at [sourceforge.net/projects/krumo/](https://sourceforge.net/projects/krumo/).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkktsvetkov%2Fkrumo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkktsvetkov%2Fkrumo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkktsvetkov%2Fkrumo/lists"}