PHPackages                             liberu-genealogy/laravel-dna - 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. liberu-genealogy/laravel-dna

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

liberu-genealogy/laravel-dna
============================

Laravel wrapper around php-dna for DNA analysis and genealogy

v2.2.0(4mo ago)15.0k↑113.3%2MITPHPPHP &gt;=8.3

Since Mar 12Pushed 4mo ago3 watchersCompare

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

READMEChangelog (5)Dependencies (9)Versions (29)Used By (2)

laravel-dna
===========

[](#laravel-dna)

Laravel 11 or Laravel 12 wrapper around php-dna

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

[](#installation)

To install the `laravel-dna` dependency in your Laravel project, run the following command in your terminal:

```
composer require liberu-genealogy/laravel-dna

```

This will download and install the `laravel-dna` package, making it available for use within your Laravel application.

Dispatching the DispatchMatchkitsJob
------------------------------------

[](#dispatching-the-dispatchmatchkitsjob)

To dispatch the `DispatchMatchkitsJob` for processing DNA matchkits, you can use the following code snippet:

```
use LaravelDna\Jobs\DispatchMatchkitsJob;
use Dna\MatchKits;

// Option 1: Using dependency injection
dispatch(new DispatchMatchkitsJob(app(MatchKits::class)));

// Option 2: Using the service container binding
dispatch(app('dispatchMatchkits'));
```

This will enqueue the job for processing by the Laravel queue system. Make sure your queue worker is running to process the job.

Usage
-----

[](#usage)

### Using the Facade

[](#using-the-facade)

You can use the MatchKitsFacade to access MatchKits functionality:

```
use LaravelDna\Facades\MatchKitsFacade;
use Dna\Snps\SNPs;

// Load DNA kits
$kit1 = new SNPs('/path/to/kit1.txt');
$kit2 = new SNPs('/path/to/kit2.txt');

// Get MatchKits instance via facade
$matchKits = app('matchKits');
$matchKits->setKitsData([$kit1, $kit2]);

// Match the kits
$matchKits->matchKits();

// Get matched data
$matchedData = $matchKits->getMatchedData();

// Visualize the results
$matchKits->visualizeMatchedData('matched_data.png', 'DNA Match Results', 'GRCh37', 'png');
```

### Direct Usage

[](#direct-usage)

You can also use the MatchKits class directly:

```
use Dna\MatchKits;
use Dna\Snps\SNPs;

$matchKits = app(MatchKits::class);

// Load your DNA kit files
$kit1 = new SNPs('/path/to/kit1.txt');
$kit2 = new SNPs('/path/to/kit2.txt');

$matchKits->setKitsData([$kit1, $kit2]);
$matchKits->matchKits();

$matchedData = $matchKits->getMatchedData();
```

After setting up the `php-dna` dependency and dispatching the `DispatchMatchkitsJob`, you can start integrating DNA processing functionalities into your Laravel application. Refer to the `php-dna` documentation for more details on available methods and their usage.

For any custom functionalities or issues, feel free to extend the job or service provider classes as needed.

###  Health Score

48

—

FairBetter than 93% of packages

Maintenance75

Regular maintenance activity

Popularity24

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 62% 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 ~176 days

Total

5

Last Release

139d ago

Major Versions

v1.0.0 → v2.0.02024-05-12

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/179251?v=4)[Curtis Delicata](/maintainers/curtisdelicata)[@curtisdelicata](https://github.com/curtisdelicata)

---

Top Contributors

[![sweep-ai-deprecated[bot]](https://avatars.githubusercontent.com/in/307814?v=4)](https://github.com/sweep-ai-deprecated[bot] "sweep-ai-deprecated[bot] (49 commits)")[![curtisdelicata](https://avatars.githubusercontent.com/u/179251?v=4)](https://github.com/curtisdelicata "curtisdelicata (22 commits)")[![Copilot](https://avatars.githubusercontent.com/in/1143301?v=4)](https://github.com/Copilot "Copilot (7 commits)")[![delicatacurtis](https://avatars.githubusercontent.com/u/247246500?v=4)](https://github.com/delicatacurtis "delicatacurtis (1 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisRector

### Embed Badge

![Health badge](/badges/liberu-genealogy-laravel-dna/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[api-platform/laravel

API Platform support for Laravel

58171.6k14](/packages/api-platform-laravel)[wearepixel/laravel-cart

A cart implementation for Laravel

1374.8k](/packages/wearepixel-laravel-cart)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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