PHPackages                             larswiegers/laravel-ai-evaluation - 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. [Testing &amp; Quality](/categories/testing)
4. /
5. larswiegers/laravel-ai-evaluation

ActiveLibrary[Testing &amp; Quality](/categories/testing)

larswiegers/laravel-ai-evaluation
=================================

Run AI/LLM evals for your AI features

0.1.4(2w ago)314[5 issues](https://github.com/LarsWiegers/laravel-ai-evaluation/issues)[1 PRs](https://github.com/LarsWiegers/laravel-ai-evaluation/pulls)MITPHPPHP ^8.3CI passing

Since Apr 14Pushed 1w agoCompare

[ Source](https://github.com/LarsWiegers/laravel-ai-evaluation)[ Packagist](https://packagist.org/packages/larswiegers/laravel-ai-evaluation)[ Docs](https://github.com/larswiegers/laravel-ai-evaluation)[ RSS](/packages/larswiegers-laravel-ai-evaluation/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (6)Dependencies (6)Versions (14)Used By (0)

Laravel AI Evaluation
=====================

[](#laravel-ai-evaluation)

[![Latest Version on Packagist](https://camo.githubusercontent.com/78fb017bc7353da05e02d10f730b8f3162747e0aaed9354353826d68e2993c08/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f4c617273576965676572732f6c61726176656c2d61692d6576616c756174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/LarsWiegers/laravel-ai-evaluation)[![Total Downloads](https://camo.githubusercontent.com/022acb8f3b9f3bd902a913379f8b60a4780f2d4f8e5dfb5ceebb9b00d6f3512b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f4c617273576965676572732f6c61726176656c2d61692d6576616c756174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/LarsWiegers/laravel-ai-evaluation)[![GitHub Actions](https://github.com/LarsWiegers/laravel-ai-evaluation/actions/workflows/main.yml/badge.svg)](https://github.com/LarsWiegers/laravel-ai-evaluation/actions/workflows/main.yml/badge.svg)[![Laravel Compatibility](https://camo.githubusercontent.com/c3695f96a691d72f6c44b6f67a9106ebf81d4e6a652025d5eb144f16d4f34a4b/68747470733a2f2f62616467652e6c61726176656c2e636c6f75642f62616467652f6c617273776965676572732f6c61726176656c2d61692d6576616c756174696f6e)](https://packagist.org/packages/larswiegers/laravel-ai-evaluation)

[![Laravel AI evaluation](https://camo.githubusercontent.com/51c72cecfdd409ce28c51ad50af24d21d58077e53796888bf04a920d306e8e03/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c25323041492532304576616c756174696f6e2e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d6c617273776965676572732532466c61726176656c2d61692d6576616c756174696f6e267061747465726e3d617263686974656374267374796c653d7374796c655f31266465736372697074696f6e3d4d616b652b737572652b796f75722b6167656e74732b726573706f6e642b686f772b796f752b77616e742b7468656d2b746f2e266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d6265616b6572)](https://camo.githubusercontent.com/51c72cecfdd409ce28c51ad50af24d21d58077e53796888bf04a920d306e8e03/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c25323041492532304576616c756174696f6e2e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d6c617273776965676572732532466c61726176656c2d61692d6576616c756174696f6e267061747465726e3d617263686974656374267374796c653d7374796c655f31266465736372697074696f6e3d4d616b652b737572652b796f75722b6167656e74732b726573706f6e642b686f772b796f752b77616e742b7468656d2b746f2e266d643d312673686f7757617465726d61726b3d3026666f6e7453697a653d313030707826696d616765733d6265616b6572)

Test real Laravel AI agent behavior with repeatable evals that run in Pest, Artisan, and CI.

Quick start
-----------

[](#quick-start)

```
composer require --dev larswiegers/laravel-ai-evaluation
php artisan make:ai-evals refund-policy --type=pest
vendor/bin/pest tests/AgentEvals
```

```
use LaravelAIEvaluation\AIEval;

it('answers refund policy questions', function () {
    AIEval::agent(App\Ai\Agents\SupportAgent::class)
        ->input('Can I get a refund?')
        ->expectContains(['refund', '30 days'])
        ->run()
        ->assertPasses();
});
```

For installation, expectations, standalone reports, and CI output formats, see the docs:

- [Documentation](https://ai-evals.larswiegers.nl/)

###  Health Score

37

—

LowBetter than 81% of packages

Maintenance77

Regular maintenance activity

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 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 ~8 days

Total

5

Last Release

19d ago

PHP version history (2 changes)0.1PHP ^8.3|^8.4|^8.5

0.1.4PHP ^8.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20204608?v=4)[Lars Wiegers](/maintainers/LarsWiegers)[@LarsWiegers](https://github.com/LarsWiegers)

---

Top Contributors

[![LarsWiegers](https://avatars.githubusercontent.com/u/20204608?v=4)](https://github.com/LarsWiegers "LarsWiegers (58 commits)")

---

Tags

testinglaravelaillmevals

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/larswiegers-laravel-ai-evaluation/health.svg)

```
[![Health](https://phpackages.com/badges/larswiegers-laravel-ai-evaluation/health.svg)](https://phpackages.com/packages/larswiegers-laravel-ai-evaluation)
```

###  Alternatives

[larastan/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

6.4k51.0M7.4k](/packages/larastan-larastan)[laravel/ai

The official AI SDK for Laravel.

9782.1M153](/packages/laravel-ai)[neuron-core/neuron-laravel

Official Neuron AI Laravel SDK.

11025.7k](/packages/neuron-core-neuron-laravel)[calebdw/larastan

Larastan - Discover bugs in your code without running it. A phpstan/phpstan extension for Laravel

15104.9k4](/packages/calebdw-larastan)

PHPackages © 2026

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