PHPackages                             migda/laravel-nestedset-visualisation - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. migda/laravel-nestedset-visualisation

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

migda/laravel-nestedset-visualisation
=====================================

This package allows to visually preview your nestedset graph.

1.0.1(4y ago)151MITPHPPHP ^7.3 | ^8.0

Since Sep 16Pushed 4y ago1 watchersCompare

[ Source](https://github.com/migda/laravel-nestedset-visualisation)[ Packagist](https://packagist.org/packages/migda/laravel-nestedset-visualisation)[ Docs](https://github.com/migda/laravel-nestedset-visualisation)[ RSS](/packages/migda-laravel-nestedset-visualisation/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (8)Versions (3)Used By (0)

The package allows to visually preview your nestedset graph.
============================================================

[](#the-package-allows-to-visually-preview-your-nestedset-graph)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e77b00e9dcc58b91bf93ce2eea583f0983cacd37c41bf4c3fb4ea79bf1f63849/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d696764612f6c61726176656c2d6e65737465647365742d76697375616c69736174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/migda/laravel-nestedset-visualisation)[![GitHub Tests Action Status](https://camo.githubusercontent.com/a449567972b480305bbbb62634965cb4bee54fea6319f31471aaefb8b92e323e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6d696764612f6c61726176656c2d6e65737465647365742d76697375616c69736174696f6e2f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/migda/laravel-nestedset-visualisation/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/1693b0d2d0e72e6c98480e48ef5bd64807f835bd3672cbd7871df845b8b58058/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6d696764612f6c61726176656c2d6e65737465647365742d76697375616c69736174696f6e2f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/migda/laravel-nestedset-visualisation/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/05de5eb4acfd14c709e624d2194033ff9822c58c33ca185bea704f86a93f8ca8/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d696764612f6c61726176656c2d6e65737465647365742d76697375616c69736174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/migda/laravel-nestedset-visualisation)

Extension for [Laravel Nestedset](https://github.com/lazychaser/laravel-nestedset).

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require migda/laravel-nestedset-visualisation
```

Usage
-----

[](#usage)

An artisan command for generating an image of a given graph is included.

It accepts the fully qualified name of the model as an argument, eg. App\\Models\\Category

If you want to run this command, you need to have installed **dot** - Part of graphviz package ().

```
php artisan laravel-nestedset:visualize {model? : Nestedset model} {property? : model property as node label} {--output=./graph.jpg} {--format=jpg} {--direction=TB} {--dot-path=/usr/local/bin/dot}
```

Example:

```
php artisan laravel-nestedset:visualize "\App\Models\Category" name --output=categories_graph.jpg --format=jpg --direction=LR
```

or just:

```
php artisan laravel-nestedset:visualize
```

[![test](example.jpg)](example.jpg)

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Rafal Migda](https://github.com/migda)
- [All Contributors](../../contributors)

Inspired by
-----------

[](#inspired-by)

[Winzou State Machine service provider for Laravel](https://github.com/sebdesign/laravel-state-machine#visualize-command)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1703d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4677b51c2a1a7ae09a6214b117d2944c02217b2ad2e9c5ac3fd66e867faa5242?d=identicon)[migda](/maintainers/migda)

---

Top Contributors

[![migda](https://avatars.githubusercontent.com/u/18553011?v=4)](https://github.com/migda "migda (18 commits)")

---

Tags

laravelnestedsetmigdalaravel-nestedset-visualisation

###  Code Quality

TestsPest

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/migda-laravel-nestedset-visualisation/health.svg)

```
[![Health](https://phpackages.com/badges/migda-laravel-nestedset-visualisation/health.svg)](https://phpackages.com/packages/migda-laravel-nestedset-visualisation)
```

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.7k28.9M627](/packages/spatie-laravel-data)[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
