railt/dumper

This package is abandoned and no longer maintained. No replacement package was suggested.

The Railt Framework mechanism for exploring and dumping PHP variable types

1.4.x-dev 2023-09-17 16:11 UTC

This package is auto-updated.

Last update: 2023-09-17 16:11:27 UTC


README

Railt

Travis CI 68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f65323266626136323238623166613634316531302f746573745f636f766572616765 68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f65323266626136323238623166613634316531302f6d61696e7461696e6162696c697479

PHP 7.1+ railt.org Discord Latest Stable Version Total Downloads License MIT

This package is deprecated. Please use get_debug_type PHP function instead.

Dumper

Note: All questions and issues please send to https://github.com/railt/railt/issues

Usage

Component for short dump types. Can be used as a display of values in exceptions or short messages without detailed disclosure of the internal structure.

<?php

echo dump_type(function (string $message = 'Hello World!'): string {
    return $message;
});

// fn((string $message = "Hello World!") -> string)
<?php

echo dump_type(new ArrayIterator([1, 2, 3, 0.2]));

// object(ArrayIterator#18<int|float>)