Thanks to visit codestin.com
Credit goes to github.com

Skip to content

geanruca/coherence

Repository files navigation

Laravel Coherence

Laravel Coherence is a developer tool that uses AI (via 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

  • 🔎 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

composer require geanruca/laravel-coherence

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published