PHPackages                             kcesys/laravel-inertia-genealogy - 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. [Framework](/categories/framework)
4. /
5. kcesys/laravel-inertia-genealogy

ActiveLibrary[Framework](/categories/framework)

kcesys/laravel-inertia-genealogy
================================

Laravel bridge for KCESYS Genealogy library with Inertia support

0565PHP

Since Dec 15Pushed 6mo agoCompare

[ Source](https://github.com/KCESYS/laravel-inertia-genealogy)[ Packagist](https://packagist.org/packages/kcesys/laravel-inertia-genealogy)[ RSS](/packages/kcesys-laravel-inertia-genealogy/feed)WikiDiscussions main Synced 2d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Inertia Genealogy
=========================

[](#laravel-inertia-genealogy)

A Laravel bridge for [kcesys/php-genealogy](https://github.com/KCESYS/php-genealogy) designed for seamless integration with Inertia.js.

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

[](#installation)

```
composer require kcesys/laravel-inertia-genealogy
```

Features
--------

[](#features)

- **Fluent Helper**: `Genealogy::for($data)` wrapper.
- **Inertia Integration**: `share()` method to automatically inject props.
- **Auto-Discovery**: Automatically transforms Eloquent Models.

Usage
-----

[](#usage)

In your Controller:

```
use KCESYS\LaravelGenealogy\Genealogy;
use App\Models\User;
use Inertia\Inertia;

public function index()
{
    $family = User::with('parents', 'children')->get();

    // Option 1: Pass as Prop
    return Inertia::render('MyTree', [
        'graph' => Genealogy::for($family)->toGraph([
             'label' => 'full_name', // Map 'label' to 'full_name' attribute
             'spouses' => fn($u) => $u->partners->pluck('id') // Custom relationship mapping
        ])
    ]);
}
```

### Sharing Globally

[](#sharing-globally)

If you want the genealogy data available on every page (e.g. for a sidebar widget):

```
// In HandleInertiaRequests Middleware
public function share(Request $request)
{
    return array_merge(parent::share($request), [
        'genealogy' => fn() => Genealogy::for($request->user()->family)->toGraph()
    ]);
}
```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance46

Moderate activity, may be stable

Popularity16

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/181174959?v=4)[KCESYS Ltd](/maintainers/KCESYS)[@KCESYS](https://github.com/KCESYS)

### Embed Badge

![Health badge](/badges/kcesys-laravel-inertia-genealogy/health.svg)

```
[![Health](https://phpackages.com/badges/kcesys-laravel-inertia-genealogy/health.svg)](https://phpackages.com/packages/kcesys-laravel-inertia-genealogy)
```

###  Alternatives

[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k39.6M299](/packages/laravel-dusk)[nineinchnick/edatatables

Grid widget for the Yii Framework, wrapper for the DataTables jQuery plugin

173.2k](/packages/nineinchnick-edatatables)[link-cloud/fast-hyperf

LinkCloud Fast Hyperf

241.2k1](/packages/link-cloud-fast-hyperf)

PHPackages © 2026

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