cline/ancestry

Closure table hierarchies for Eloquent models with O(1) ancestor/descendant queries.

Maintainers

👁 faustbrian

Package info

github.com/faustbrian/ancestry

pkg:composer/cline/ancestry

Statistics

Installs: 13 904

Dependents: 1

Suggesters: 0

Stars: 1

Open Issues: 0

2.0.3 2026-03-18 16:45 UTC

Requires

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

MIT ce84be0a06eb44afc6fd88cbff4af4d11d5beb0f

  • Brian Faust <brian.woop@cline.sh>

treelaravelhierarchyeloquentnestedclosure-tableancestorsdescendants

This package is auto-updated.

Last update: 2026-06-18 17:26:13 UTC


README

👁 GitHub Workflow Status
👁 Latest Version on Packagist
👁 Software License
👁 Total Downloads

Ancestry

Closure table hierarchies for Eloquent models with O(1) ancestor/descendant queries.

Ancestry implements the closure table pattern for managing hierarchical relationships in Laravel. This enables efficient queries for ancestors and descendants without recursion limits, supporting deeply nested relationships like organizational charts, sales hierarchies, and category trees.

Documentation

Change log

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please use the GitHub security reporting form rather than the issue queue.

Credits

License

The MIT License. Please see License File for more information.