sebastian/object-enumerator
Traverses arrays and object graphs to enumerate every referenced object, including nested structures and circular references. A small utility from Sebastian Bergmann's PHP testing stack, commonly pulled in by PHPUnit to walk object graphs safely.
Enumerator::enumerate() is now significantly faster for large object graphsEnumerator::enumerate() no longer recurses infinitely on arrays that reference themselvesHow can I help you explore Laravel packages today?