Download the PHP package aronduby/dump without Composer

On this page you can find all versions of the php package aronduby/dump. 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 dump

D::ump

A print_r/var_dump replacement for PHP >= 5.4.0 based on Krumo and the oodle/krumo fork.

D::ump screenshot

Differences from Krumo

Note: reflection can't get the default values for arguments of built-in methods/functions, it will display the argument name with a note in these circumstances

Install

Using Composer

then run composer install or composer update

Usage

Basic Usage

You can also pass multiple arguments:

Dump Settings

If you pass an instance of D\DumpSettings as the last argument to D::ump you can set a title, output buffer the return, kill the process after returning, and expand all the collapsibles by default.

Short Cut:

The D object has a shortcut to quickly create and return an instance of D\DumpSettings, so the same example could be rewritten as

Flags

The following flags are available as constants of the D class:

Note: Passing a bitmask containing both D::KILL and D::OB will result in an InvalidArgumentException being thrown since you can't do both Note: D\DumpSettings also has a backtrace property which is used by D::ump()

Config

You can globally modify the following properties by passing an associative array into D::config($arr) with the following values

Key Type Default Description
enabled Boolean true globally enabled/disable output, can also call D::disable & D::enable
css_file String null path to a custom CSS file, file will be read in using file_get_contents, should be absolute path
display.separator String => string to use as a separator between the key/values (the default is wrapped in spaces)
display.truncate_length Integer 80 If a string is longer than X characters it will be truncated with the non-truncated version displaying as a collapsible
display.cascade Array null Array of integers to determine when a level should collapse. If the specified level has greater than X amount of element it shows collapsed. display.cascade=>[5,10] will expand the first level if there are 5 or less items and the second level with 10 or less. Set to null to have everything collapse
display.show_version Boolean true Include version # and link in the footer of the output
display.show_call_info Boolean true Include the file/line # D was called from
display.replace_returns Boolean false Should we replace returns \n with br's in the output
sorting.arrays Boolean true Reorder associative arrays (and object properties and methods) based on their keys

Example


All versions of dump with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3
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 aronduby/dump contains the following files

Loading the files please wait ....