PHPackages                             geanruca/laravel-coherence - 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. [Database &amp; ORM](/categories/database)
4. /
5. geanruca/laravel-coherence

ActiveLibrary[Database &amp; ORM](/categories/database)

geanruca/laravel-coherence
==========================

A Laravel package for AI-based data coherence validation in you Eloquent Models

v1.0.1-alpha(11mo ago)11MITPHPPHP ^8.1

Since May 19Pushed 11mo ago1 watchersCompare

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

READMEChangelogDependencies (4)Versions (3)Used By (0)

Laravel Coherence
=================

[](#laravel-coherence)

**Laravel Coherence** is a developer tool that uses AI (via [Prism](https://github.com/prism-php/prism)) to validate whether the attributes of your Eloquent models are logically coherent before they are saved. It's useful for catching absurd or invalid values early, especially in data-critical applications.

---

🚀 Features
----------

[](#-features)

- 🔎 Coherence validation using LLMs (OpenAI, etc.)
- 📚 Automatic or manual model description
- 🧠 Dynamic prompt generation with model context
- 🛑 Strict mode (throws exception) or safe mode (logs result)
- 📋 Polymorphic logging of all coherence checks

---

📦 Installation
--------------

[](#-installation)

```
composer require geanruca/laravel-coherence
```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance50

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 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

358d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8635bb504a4559fd9137c04bcfd7849bbd9bcee2049a0da715baad76c52a27a9?d=identicon)[geanruca](/maintainers/geanruca)

---

Top Contributors

[![geanruca](https://avatars.githubusercontent.com/u/44916977?v=4)](https://github.com/geanruca "geanruca (5 commits)")

---

Tags

ai-validationeloquentlaravellaravel-packageopenaiphpprism

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/geanruca-laravel-coherence/health.svg)

```
[![Health](https://phpackages.com/badges/geanruca-laravel-coherence/health.svg)](https://phpackages.com/packages/geanruca-laravel-coherence)
```

###  Alternatives

[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[cybercog/laravel-love

Make Laravel Eloquent models reactable with any type of emotions in a minutes!

1.2k302.7k1](/packages/cybercog-laravel-love)[cviebrock/eloquent-taggable

Easy ability to tag your Eloquent models in Laravel.

567694.8k3](/packages/cviebrock-eloquent-taggable)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[genealabs/laravel-pivot-events

This package introduces new eloquent events for sync(), attach(), detach() or updateExistingPivot() methods on BelongsToMany relation.

1404.9M8](/packages/genealabs-laravel-pivot-events)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

2121.2M13](/packages/reedware-laravel-relation-joins)

PHPackages © 2026

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