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
Recursion Context

Recursion Context Laravel Package

sebastian/recursion-context

sebastian/recursion-context is a small PHP utility for tracking recursive traversals and avoiding infinite loops when walking nested structures. It provides the RecursionContext class used by sebastian/comparator and PHPUnit to handle recursion safely.

View on GitHub
Deep Wiki
Context7

sebastian/recursion-context is a small, dependency-free PHP library that provides a Context class for tracking recursion while walking nested arrays and objects. It is used by tools such as PHPUnit and sebastian/object-enumerator to detect when the same array or object is encountered again, preventing infinite loops during serialization, dumping, or enumeration of recursive data structures.

  • Detects repeated arrays and objects via contains()
  • Tracks visited values with add() and remove() (push/pop)
  • Handles self-referencing and deeply nested structures
  • Simple, focused API with no runtime dependencies
  • Installable via Composer (composer require sebastian/recursion-context)
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.
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core