larswiegers/laravel-ai-evaluation

Run AI/LLM evals for your AI features
3,773 7
Install
composer require larswiegers/laravel-ai-evaluation
Latest Version:0.1.6
PHP:^8.3
Laravel:12 · 13
License:MIT
Last Updated:Sep 13, 2026
Links: GitHub  ·  Packagist
Maintainer: LarsWiegers

Laravel AI Evaluation

Latest Version on Packagist Total Downloads GitHub Actions Laravel Compatibility

Laravel AI evaluation

Test real Laravel AI agent behavior with repeatable evals that run through Artisan and CI.

Quick start

composer require --dev larswiegers/laravel-ai-evaluation
php artisan make:ai-evals refund-policy
php artisan ai-evals:run
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:

Related Packages

mosaiqo/proofread

The only eval package native to the official Laravel AI stack. Evaluate agents,...

672 0
vizra/evals

Evaluation framework for AI agents built on the official Laravel AI SDK.

74 1
padosoft/eval-harness-ai-bridge

Bridge between padosoft/eval-harness and the laravel/ai SDK: turn an AgentRespon...

4 0
pestphp/pest-plugin-evals

A PestPHP plugin for evaluating LLM agents with LLM-as-judge, semantic similarit...

132,822 5
redberry/pest-plugin-evals

A Pest plugin for evaluating LLM Outputs

1,525 8

Version History

Version Released PHP Laravel License
0.1.6 ^8.3 ^12.0|^13.0 MIT
0.1.5 ^8.3 ^12.0|^13.0 MIT
0.1.4 ^8.3 ^12.0|^13.0 MIT
0.1.3 ^8.3|^8.4|^8.5 ^12.0|^13.0 MIT
0.1.2 ^8.3|^8.4|^8.5 ^12.0|^13.0 MIT