larswiegers/laravel-ai-evaluation

Run AI/LLM evals for your AI features
2,935 6
Install
composer require larswiegers/laravel-ai-evaluation
Latest Version:0.1.6
PHP:^8.3
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

vizra/evals

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

69 1
padosoft/eval-harness-ai-bridge

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

4 0
ykachala/evals

Prompt and LLM-output regression testing for PHP. Define golden datasets, assert...

0 0
vizra/evals-ui

Livewire dashboard for the Vizra Evals agent-evaluation framework.

6 0
jkudish/pest-plugin-ai-benchmarks

A Pest plugin for comparative AI benchmarks, durable evidence, replay, and basel...

43 0