railt / dumper
The Railt Framework mechanism for exploring and dumping PHP variable types
Installs: 178
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
pkg:composer/railt/dumper
Requires
- php: >=7.1.3
- symfony/var-dumper: ~3.4|~4.0|~5.0
Requires (Dev)
- phpunit/phpunit: ^7.5
This package is auto-updated.
Last update: 2023-09-17 16:11:27 UTC
README
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>)