sebastian/exporter
Exports PHP variables into readable, stable string representations for visualization and debugging. Handles scalars, arrays, objects, resources, binary strings, and recursive references, producing clear output useful in test failures and developer tooling.
"minimum-stability": "dev" from composer.jsonObjectExporter interface, ObjectExporterChain, and ExportContext for customizing how objects are exported (an object exporter can be passed to Exporter's constructor and is consulted before the default representation of an object is used)Exporter::shortenedExport() and Exporter::shortenedRecursiveExport() use the representation provided by an object exporter as well; it is collapsed to a single line and shortened when it is longer than the configured maximum lengthExporter::hasCustomRepresentationFor() for checking whether an object exporter provides the representation for an object\n (LF) followed by a lone \r (CR) was incorrectly treated as a single \n\r line ending when exporting a string; these are now treated as two separate line endingsExporter::toArray() silently drops a private property that is redeclared in a derived classExporter::toArray() silently drops a private property that is redeclared in a derived classNAN, INF, and -INF in exportFloat()unexpected NAN value was coerced to string warning triggered on PHP 8.5unexpected NAN value was coerced to string warning triggered on PHP 8.5unexpected NAN value was coerced to string warning triggered on PHP 8.5not representable as an int, cast occurred warning triggered on PHP 8.5not representable as an int, cast occurred warning triggered on PHP 8.5not representable as an int, cast occurred warning triggered on PHP 8.5shortenedRecursiveExport() and shortenedExport() to control maximum string lengthcount(): Recursion detected warning triggeredHow can I help you explore Laravel packages today?