# pestphp/pest

The elegant testing framework for PHP developers and AI agents.

Repository: https://github.com/pestphp/pest
Canonical: https://ross.abutalabs.com/products/pest
Homepage: https://pestphp.com
Language: PHP
License: MIT
License Family: permissive
Topics: php, testing, pest, framework
Last push: 2026-08-26T08:36:50+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 87, longevity 100
- inputs: {"age_days": 2366, "days_push": 7, "days_rel": 8, "gap_med": 2.5, "n_releases_24m": 85}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 11683, forks 526 (observed 2026-08-28T04:10:49.471030+00:00)

## What it is
Pest is an elegant PHP testing framework built on top of PHPUnit, offering a functional test API with expressive expect() assertions, datasets, hooks, and architecture testing. Version 5 adds browser testing, AI evals for LLM output, an agent plugin for AI coding assistants, and test-impact-analysis for fast re-runs.

## Use cases
- write unit and feature tests in php
- migrate phpunit tests to pest
- run browser tests for a laravel app
- evaluate llm agent output quality in tests
- speed up test suite by running only affected tests
- enforce architecture rules in php codebase
- run data-driven tests with datasets

## When to choose
- you write PHP 8.4+ applications, especially Laravel, and want a modern expressive testing API
- you want built-in browser testing, AI evals, and agent-friendly verification in one framework
- you want to gradually migrate from PHPUnit while keeping its ecosystem

## When to avoid
- your project runs on PHP older than 8.4
- you rely on a PHPUnit-only workflow or tooling incompatible with Pest's functional style
- you need a testing framework for a non-PHP language

## Facets
- artifact type: framework
- maturity: active
- function: testing, e2e-testing, cli, llm-inference
- domain: testing, developer-tools, web-development
- platform: php, cli, cross-platform
- tags: php-testing, phpunit, expectation-api, browser-testing, ai-evals, laravel, test-runner, php

## Member repositories
- pestphp/pest (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:49.471030+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:15:24.472418+00:00, confidence not recorded.
  - readme: https://github.com/pestphp/pest (fetched 2026-08-28T04:10:49.471030+00:00, sha c3355b4ef66b)
  - homepage: https://pestphp.com (fetched 2026-08-29T08:13:50.728823+00:00, sha 837fbd026e84)
  - site_page: https://pestphp.com/docs (fetched 2026-08-29T08:13:50.738183+00:00, sha d15d5841fc58)
  - site_page: https://pestphp.com/docs/installation (fetched 2026-08-29T08:13:50.740094+00:00, sha c52a2b245937)
  - site_page: https://pestphp.com/docs/pest5-now-available (fetched 2026-08-29T08:13:50.741628+00:00, sha f10ce21cb15b)
  - site_page: https://pestphp.com/docs/editor-setup (fetched 2026-08-29T08:13:50.743640+00:00, sha be15146f0578)
  - site_page: https://pestphp.com/docs/writing-tests (fetched 2026-08-29T08:13:50.745306+00:00, sha 8b205d4618db)
  - site_page: https://pestphp.com/docs/expectations (fetched 2026-08-29T08:13:50.747123+00:00, sha 9a696c6e39d7)
  - site_page: https://pestphp.com/docs/hooks (fetched 2026-08-29T08:13:50.749949+00:00, sha ddc82400d95e)
  - site_page: https://pestphp.com/docs/datasets (fetched 2026-08-29T08:13:50.752178+00:00, sha 04aaa790e7e7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
