Weave 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

Polyfill Deepclone Laravel Package

symfony/polyfill-deepclone

Pure-PHP implementation of the deepclone extension's functions for converting value graphs to arrays and back, preserving object identity, references, cycles, and private state—faster and more memory-efficient than serialize/unserialize.

View on GitHub
Deep Wiki
Context7
v1.43.2

Changelog (https://github.com/symfony/polyfill-deepclone/compare/v1.43.1...v1.43.2)

v1.43.1

Changelog (https://github.com/symfony/polyfill-deepclone/compare/v1.43.0...v1.43.1)

  • bug #715 Separate the storage of ArrayObject and ArrayIterator from the payload (@nicolas-grekas)
v1.43.0

Changelog (https://github.com/symfony/polyfill-deepclone/compare/v1.42.0...v1.43.0)

  • bug #713 Resolve mangled keys like the extension in deepclone_hydrate() (@nicolas-grekas)
  • bug #712 Fix issues found by differential fuzzing (@nicolas-grekas)
  • bug #709 Fix creating DOMNameSpaceNode, ImagickPixel and intl objects (@nicolas-grekas)
  • bug #701 Fix cloning DatePeriod on PHP 8.1 (@nicolas-grekas)
  • bug #707 Fix code run by deepclone_to_array() reading the markers of hard references (@nicolas-grekas)
  • bug #706 Fix detecting anonymous closures on PHP 8.1 (@nicolas-grekas)
  • bug #705 Fix restoring the severity of ErrorException (@nicolas-grekas)
  • bug #704 Throw the extension's errors for malformed deepclone_from_array() payloads (@nicolas-grekas)
  • bug #700 Fix restoring objects held by Random\Randomizer and HashContext (@nicolas-grekas)
  • bug #708 Reject more internal classes that keep their state out of their properties (@nicolas-grekas)
  • bug #703 Reject and create classes like the extension in deepclone_from_array() and deepclone_hydrate() (@nicolas-grekas)
  • bug #699 Fix detecting classes that refuse serialization (@nicolas-grekas)
  • bug #702 Align payloads and warnings with serialize() and the extension (@nicolas-grekas)
  • bug #698 Resolve the names returned by __sleep() like serialize() (@nicolas-grekas)
  • minor #697 Speed up deepclone_to_array() on large object graphs (@nicolas-grekas)
  • bug #696 Fix cloning objects whose property defaults hold closures (@nicolas-grekas)
  • bug #687 Write hooked properties raw in deepclone_from_array() (@nicolas-grekas)
  • bug #674 Preserve PHP references like unserialize(serialize()) does (@nicolas-grekas)
  • bug #673 Initialize lazy objects in deepclone_to_array() (@nicolas-grekas)
v1.42.0

Changelog (https://github.com/symfony/polyfill-deepclone/compare/v1.40.0...v1.42.0)

  • minor #644 Align tests with PHP 8.6 changes to ext/tidy and ext/intl (@nicolas-grekas)
  • bug #643 Hydrate mangled keys through the grouped path even when they resolve to the object's own scope (@nikophil)
v1.40.0

Changelog (https://github.com/symfony/polyfill-deepclone/compare/v1.39.0...v1.40.0)

  • bug #635 Suggest the extension when refusing a named callable, and decode its global-function references (@nicolas-grekas)
  • feature #634 Gate closures over named callables behind an allow_named_closures option (@nicolas-grekas)
v1.39.0

Changelog (https://github.com/symfony/polyfill-deepclone/compare/v1.38.2...v1.39.0)

  • feature #630 Support closures declared in constant expressions (@nicolas-grekas)
  • bug #632 Fix round-tripping short-lived Random\Randomizer instances on PHP 8.2 (@nicolas-grekas)
  • bug #631 Reject from_array payloads that would build an uninitialized object (@nicolas-grekas)
v1.38.2

Changelog (https://github.com/symfony/polyfill-deepclone/compare/v1.37.0...v1.38.2)

  • bug #629 Fix round-tripping objects whose __serialize() nests another object (@nicolas-grekas)
  • bug #628 Fix round-tripping and hydrating BcMath\Number (@nicolas-grekas)
  • bug #627 Reject malformed deepclone_from_array() input without warnings (@nicolas-grekas)
  • bug #626 Fix cloning objects with numeric property names (@nicolas-grekas)
v1.37.0

Changelog (https://github.com/symfony/polyfill-deepclone/compare/v1.36.0...v1.37.0)

  • bug #584 Drop SPL "\0" special key from deepclone_hydrate() (@nicolas-grekas)
  • bug #577 Cap IS_LONG objectMeta count at 1M (@nicolas-grekas)
  • feature #576 Drop scoped mode — mangled-only is now the only shape (@nicolas-grekas)
  • feature #574 Add DEEPCLONE_HYDRATE_PRESERVE_REFS flag + hot-path perf (@nicolas-grekas)
v1.36.0

Changelog (https://github.com/symfony/polyfill-deepclone/compare/v1.35.0...v1.36.0)

  • feature #573 Mirror ext v0.3.0: $flags parameter + forgiving-hydrate behaviors (@nicolas-grekas)
  • bug #572 Fix PHP warning for __sleep()-listed uninitialized declared properties (@nicolas-grekas)
v1.35.0

Changelog (https://github.com/symfony/polyfill-deepclone/compare/v1.34.0...v1.35.0)

  • bug #571 Fix cache poisoning causing spurious NotInstantiableException (@nicolas-grekas)
  • feature #568 Add deepclone_hydrate() polyfill (@nicolas-grekas)
v1.34.0

Changelog (https://github.com/symfony/polyfill-deepclone/compare/v1.33.0...v1.34.0)

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.
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator
equipc/laravel-email-database-log
adedsec/nova-translated-labels
wazza/laravel-db-encryption
hokny/laravel-generator
vonsogt/backup
jengo/queues
jeremykenedy/laravel-observability
coleus/frame
thtg88/journalism
filagora/filagora-ai-forums