PHPackages                             evo-mark/evo-laravel-sortable-treeview - 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. evo-mark/evo-laravel-sortable-treeview

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

evo-mark/evo-laravel-sortable-treeview
======================================

Sortable Treeview Laravel/Inertia websites

2.1.10(4w ago)0218BUSL-1.1PHPCI passing

Since Apr 16Pushed 4w ago2 watchersCompare

[ Source](https://github.com/evo-mark/evo-laravel-sortable-treeview)[ Packagist](https://packagist.org/packages/evo-mark/evo-laravel-sortable-treeview)[ RSS](/packages/evo-mark-evo-laravel-sortable-treeview/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (10)DependenciesVersions (29)Used By (0)

evoMark Laravel Sortable Treeview
=================================

[](#evomark-laravel-sortable-treeview)

Requirements (v2)
-----------------

[](#requirements-v2)

- Vue 3.5+
- Vuetify 4.0+
- Inertia 3.0+

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

[](#installation)

Add the following repository to your `composer.json` file:

```
"repositories": [
    {
        "type": "vcs",
        "url": "https://github.com/evo-mark/evo-laravel-sortable-treeview"
    }
],
```

and then this to your `require` section:

```
"require": {
    "evo-mark/evo-laravel-sortable-treeview": "^2.0.0"
}
```

then run `composer update`.

### JavaScript

[](#javascript)

Once you've installed the composer package, you can install the PNPM package symlink:

```
pnpm add vendor/evo-mark/evo-laravel-sortable-treeview
```

Usage
-----

[](#usage)

### Configuration

[](#configuration)

To publish your config file for **SortableTreeview**, run:

```
php artisan v:p --provider="EvoMark\EvoLaravelSortableTreeview\SortableTreeviewProvider"
```

### Model

[](#model)

To setup a model as sortable, add the following to the model:

```
use EvoMark\EvoLaravelSortableTreeview\Traits\SortableTreeModel;

class Model
{
    use SortableTreeModel;
}
```

### Controller

[](#controller)

Pass the treeview items to the frontend like so:

```
return Inertia::render('setup/tyre-group/index', [
    'tyreGroups' => fn() => SortableTreeview::for(TyreGroup::class)->setConfig([])
        ->setHeaders([
            [
                'value' => 'actions',
                'title' => 'Actions'
            ]
        ])->get()
]);
```

You can call `setConfig` with the following options:

PropTypeDefaultDescriptionlazyboolfalseEnables lazy loading of child items instead of loading the full tree upfront.maxDepthint | nullnullMaximum depth of the tree. `null` means no limit.itemChildrenstring"children"Key used to access child items in each node.itemChildrenCountstring"children\_count"Key used to access the number of children for a node.itemTitlestring"title"Key used for the display label/title of each item.itemValuestring"id"Key used as the unique identifier for each item.loadChildrenRoutestring"{$routePrefix}lazy"Route used to fetch children dynamically when lazy loading is enabled.loadChildrenMethodstring"get"HTTP method used for loading children.updateSortOrderRoutestring"{$routePrefix}sort"Route used to persist updated sort order.updateSortOrderMethodstring"put"HTTP method used for updating sort order.updateItemRoutestring""Route used to update an individual item.updateItemMethodstring"PATCH"HTTP method used to update an individual item.### Frontend

[](#frontend)

Finally, your frontend should look like this:

```

         {{ item.name }}

    import { EvoSortableTreeview } from 'evo-laravel-sortable-treeview';

```

### Slots

[](#slots)

The following slots are available inside the SortableTreeview component:

Slot NamePropsDescriptionitem.prepend-title`{ item }`Rendered before the main item title. Useful for icons, badges, or prefixes.item.title`{ item, title }`Main title content for the item. Defaults to displaying `item[itemTitle]`.item.append-title`{ item }`Rendered after the main item title. Useful for actions, tags, or metadata.item.columns`{ item }`Renders additional column content aligned to the right of the item.

###  Health Score

43

—

FairBetter than 90% of packages

Maintenance94

Actively maintained with recent releases

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

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 ~15 days

Recently: every ~4 days

Total

28

Last Release

28d ago

Major Versions

v0.2.0 → 1.0.02025-04-25

1.2.0 → 2.0.02026-04-07

### Community

Maintainers

![](https://www.gravatar.com/avatar/4f42ee39ec10e8f4b3552a78ea78628acef13e9772bed852baa186e97bde7748?d=identicon)[evomark](/maintainers/evomark)

---

Top Contributors

[![craigrileyuk](https://avatars.githubusercontent.com/u/68274157?v=4)](https://github.com/craigrileyuk "craigrileyuk (48 commits)")

### Embed Badge

![Health badge](/badges/evo-mark-evo-laravel-sortable-treeview/health.svg)

```
[![Health](https://phpackages.com/badges/evo-mark-evo-laravel-sortable-treeview/health.svg)](https://phpackages.com/packages/evo-mark-evo-laravel-sortable-treeview)
```

###  Alternatives

[kenguest/services-openstreetmap

More information available at https://pear.php.net/package/Services\_OpenStreetMap

20441.5k](/packages/kenguest-services-openstreetmap)[darrynten/google-natural-language-php

PHP Google Natural Language Client with Extras

775.5k](/packages/darrynten-google-natural-language-php)[friendsoftypo3/kickstarter

Extension Kickstarter - Kickstart TYPO3 Extension

245.2k2](/packages/friendsoftypo3-kickstarter)

PHPackages © 2026

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