Download the PHP package kktsvetkov/krumo without Composer

On this page you can find all versions of the php package kktsvetkov/krumo. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package krumo

Package Version

Krumo: PHP structured information display solution

KRUMO - version 2.0 of print_r(); and var_dump();

Krumo is a debugging tool, which displays structured information about any PHP variable. It is a nice replacement for print_r() or var_dump() which are used by a lot of PHP developers.

Overview

To put it simply, Krumo is a replacement for print_r() and var_dump(). By definition Krumo is a debugging tool, which displays structured information about any PHP variable.

A lot of developers use print_r() and var_dump() in the means of debugging tools. Although they were intended to present human readable information about a variable, we can all agree that in general they are not. Krumo is an alternative: it does the same job, but it presents the information beautified using CSS/JS/HTML.

Installation

This library can be installed in autoloadable way using Composer as kktsvetkov/krumo.

In the rare occasion that you are dealing with some legacy code that has not yet embraced Composer, you can also download this package, and include class.krumo.php in your project, or make it accessible somewhere in your INCLUDE_PATH:

More or less, that's it.

Examples

Here's a basic example, which will return a report on the array variable passed as argument to it:

You can dump simultaneously more then one variable - here's another example:

You probably saw from the examples above that some of the nodes are expandable, so if you want to inspect the nested information, click on them and they will expand; if you do not need that information shown simply click again on it to collapse it. Here's an example to test this:

The krumo() is the only standalone function from the package, and this is because basic dumps about variables (like print_r() or var_dump()) are the most common tasks such functionality is used for. The rest of the functionality can be called using static calls to the Krumo class. Here are several more examples:

... and so on, etc.

Please note that the first time you call Krumo the dump it produces also prints the CSS and the JS code used to expand/collapse the dump nodes.

krumo::fetch()

If you want to get the output returned instead of printed, you can use the krumo::fetch() method for that:

krumo::queue()

It's been a valid complain that sometimes Krumo output is called in the middle of some opened HTML tag, and that breaks the output of both that tag and Krumo itself. You can use krumo::queue() instead of krumo::dump() to solve that problem, since krumo::queue() will print its output at the end of the script:

Skins

There are several skins pre-installed with this package, but if you wish you can create skins of your own. The skins are simply CSS files that are prepended to the result that Krumo prints.

To the Krumo skin, you have to set it at krumo::$skin:

Here is a list of the pre-installed skins in Krumo

skins/kaloyan.info

skins/kaloyan.info

This is the new default theme, kaloyan.info. It is not as color heavy as the other skins

skins/default

skins/default

As the name suggests, this is the old "default" theme.

skins/blue

skins/blue

This is a blue version of the old default theme

skins/orange

skins/orange

This is an orange version of the old default theme

skins/green

skins/green

This is a green version of the old default theme

License

This project is released under GNU Lesser General Public License v2.1 opensource.org/licenses/LGPL-2.1

History

The project was first hosted and maintained at sourceforge.net/projects/krumo/.


All versions of krumo with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package kktsvetkov/krumo contains the following files

Loading the files please wait ....