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(1y ago)11MITPHPPHP ^8.1

Since May 19Pushed 1y 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 1w 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

23

—

LowBetter than 25% of packages

Maintenance43

Moderate activity, may be stable

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

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

457d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/44916977?v=4)[Gerardo Ruiz](/maintainers/geanruca)[@geanruca](https://github.com/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.8k55.8M13.1k](/packages/illuminate-database)[laravel/ai

The official AI SDK for Laravel.

1.1k4.6M327](/packages/laravel-ai)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8723.3M27](/packages/yajra-laravel-oci8)[leantime/leantime

Open source project management system for non-project managers. Simple like Trello, powerful like Jira. Built with neurodiversity in mind.

11.3k4.0k](/packages/leantime-leantime)

PHPackages © 2026

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