Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Exporter Laravel Package

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.

View on GitHub
Deep Wiki
Context7
8.2.1

Fixed

  • Removed "minimum-stability": "dev" from composer.json
8.2.0

Added

  • ObjectExporter 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 length
  • Exporter::hasCustomRepresentationFor() for checking whether an object exporter provides the representation for an object
8.1.1

Fixed

  • A lone \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 endings
8.1.0

Changed

  • #57: Preserve SplObjectStorage iterator position instead of resetting to first element
  • #91: Make binary string output readable for mostly-printable values
8.0.3

Fixed

  • #90: Exporter::toArray() silently drops a private property that is redeclared in a derived class
7.0.3

Fixed

  • #90: Exporter::toArray() silently drops a private property that is redeclared in a derived class
8.0.2
  • #74: Int cast warning when exporting large floats
8.0.1

Changed

  • Explicitly handle NAN, INF, and -INF in exportFloat()
8.0.0

Removed

  • This component is no longer supported on PHP 8.3
7.0.2

Changed

  • Suppress unexpected NAN value was coerced to string warning triggered on PHP 8.5
6.3.2

Changed

  • Suppress unexpected NAN value was coerced to string warning triggered on PHP 8.5
5.1.4

Changed

  • Suppress unexpected NAN value was coerced to string warning triggered on PHP 8.5
7.0.1

Changed

  • Suppress not representable as an int, cast occurred warning triggered on PHP 8.5
6.3.1

Changed

  • Suppress not representable as an int, cast occurred warning triggered on PHP 8.5
5.1.3

Changed

  • Suppress not representable as an int, cast occurred warning triggered on PHP 8.5
7.0.0

Removed

  • This component is no longer supported on PHP 8.2
6.3.0

Added

  • Optional constructor argument to control maximum string length

Deprecated

  • Optional argument for shortenedRecursiveExport() and shortenedExport() to control maximum string length
6.2.0

Added

  • #67: Optional argument for shortenedRecursiveExport() and shortenedExport() to control maximum string length

Changed

  • #69: Do not initialize lazy objects during export
6.1.3

Changed

  • #66: Avoid using the Reflection API for some classes
  • This project now uses PHPStan instead of Psalm for static analysis
6.1.2

Changed

  • #64: Improve performance of Exporter::exportString()
  • #65: Prevent unnecessary calls to str_repeat()

Fixed

  • #62: Do not limit export of arrays by default (to restore BC with versions prior to 6.1.0)
6.1.1

Fixed

  • #61: count(): Recursion detected warning triggered
6.1.0

Added

  • #59: Option to limit export of (large) arrays (to speed up PHPUnit)

Changed

  • #60: Take shortcut when exporting a string
6.0.3

Fixed

  • Fixed code coverage metadata
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
calmfox/watch-sylius
damienfern/grpc-symfony-bundle
atoolo/index-bundle
atoolo/genai-bundle
coprotoai/laravel-ticket
davidjln/llm-carbon-bundle
cryonighter/valid-request-bundle
coolms/taxonomy-bundle
coolms/field-bundle
articulate-orm/symfony
aaix/laravel-tall-architect
ephoto/akeneo-connector
emmanuelballery/eb-plantumlbundle
emielburgman/symfony-visitor-beacon
emielburgman/symfony-visit-storage
emielburgman/symfony-security-headers
emielburgman/symfony-log-viewer
emarref/xdebug-bundle
emarref/pubnub-bundle
elriseio/finance-money-bundle