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

Tree Laravel Package

nicmart/tree

A lightweight, flexible tree data structure for PHP. Provides NodeInterface/Node implementations with parent/child management, leaf/child checks, and easy child add/remove/set operations. Includes fluent builder classes to assemble trees quickly.

View on GitHub
Deep Wiki
Context7
`0.9.0`

For a full diff see [0.8.0...0.9.0`][0.8.0...0.9.0].

Added

`0.8.0`

For a full diff see [0.7.2...0.8.0`][0.7.2...0.8.0].

Added

`0.7.2`

For a full diff see [0.7.1...0.7.2`][0.7.1...0.7.2].

Fixed

  • Started throwing a LogicException when attempting to get a Node from an empty NodeBuilder ([#209]), by [@localheinz]
`0.7.1`

For a full diff see [0.7.0...0.7.1`][0.7.0...0.7.1].

Changed

  • Made use of variadic parameters in NodeBuilderInterface::leafs() and NodeBuilder::leafs() ([#168]), by [@localheinz]
`0.7.0`

For a full diff see [0.6.0...0.7.0`][0.6.0...0.7.0].

Changed

  • Changed return type declaration of NodeInterface::root() from self to static ([#149]), by [@localheinz]
  • Added a missing return type declaration to NodeInterface::getSize() ([#150]), by [@localheinz]
  • Added parameter type declarations ([#151]), by [@localheinz]
  • Added property type declarations ([#152]), by [@localheinz]

Fixed

  • Returned empty array from Node::getNeigbors() when node is root ([#153]), by [@localheinz]
  • Returned array with node only from Node::getNeigborsAndSelf() when node is root ([#154]), by [@localheinz]
`0.6.0`

For a full diff see [0.5.0...0.6.0`][0.5.0...0.6.0].

Changed

  • Added return type declarations ([#113]), by [@localheinz]
  • Added getSize() to NodeInterface ([#147]), by [@localheinz]
  • Added root() to NodeInterface ([#148]), by [@localheinz]
`0.5.0`

For a full diff see [0.4.0...0.5.0][0.4.0...0.5.0].

Added

Changed

  • Dropped support for PHP 7.2 ([#136]), by [@localheinz]
  • Dropped support for PHP 7.3 ([#137]), by [@localheinz]
  • Dropped support for PHP 7.4 ([#138]), by [@localheinz]
`0.4.0`

For a full diff see [0.3.1...0.4.0][0.3.1...0.4.0].

Added

Changed

  • Dropped support for PHP 7.1 ([#106]), by [@localheinz]
`0.3.1`

For a full diff see [0.3.0...0.3.1][0.3.0...0.3.1].

Added

Changed

`0.3.0`

For a full diff see [0.2.7...0.3.0][0.2.7...0.3.0].

Added

Changed

`0.2.7`

For a full diff see [0.2.6...0.2.7][0.2.6...0.2.7].

Added

  • Added pre-order and post-order visitors ([#24]), by [@localheinz]
`0.2.6`

For a full diff see [0.2.5...0.2.6][0.2.5...0.2.6].

Added

  • Added a getSize() method to Node ([#17]), by [@Djuki]
`0.2.5`

For a full diff see [0.2.4...0.2.5][0.2.4...0.2.5].

Added

  • Added getDepth() and getHeight() methods to Node ([#9]), by [@nicmart]
`0.2.4`

For a full diff see [0.2.3...0.2.4][0.2.3...0.2.4].

Added

  • New accessor methods ([#6]), by [@mdwheele]
`0.2.3`

For a full diff see [0.2.2...0.2.3][0.2.2...0.2.3].

Changed

  • Node::getAncestors() now does not return the current node ([#4]), by [@nicmart],
`0.2.2`

For a full diff see [0.2.1...0.2.2][0.2.1...0.2.2].

Fixed

  • Fixed a bug in the builder ([#3]), by [@nicmart]
`0.2.1`

For a full diff see [0.2.0...0.2.1][0.2.0...0.2.1].

Added

  • Added root() and isRoot() to Node
`0.2.0`

For a full diff see [0.1.2...0.2.0][0.1.2...0.2.0].

Changed

  • Dropped support for PHP 5.3
  • Extracted NodeTrait from Node
`0.10.1`

For a full diff see [0.9.0...0.10.0`][0.10.0...0.10.1].

Added

  • Added template/generic annotations for node values ([#333]), by [@smoench]
`0.10.0`

For a full diff see [0.9.0...0.10.0`][0.9.0...0.10.0].

Added

`0.1.2`

For a full diff see [0.1.1...0.1.2][0.1.1...0.1.2].

Added

  • Added YieldVisitor, to get the yield of the tree
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.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4