# minkphp/Mink

PHP web browser emulator abstraction

Repository: https://github.com/minkphp/Mink
Canonical: https://ross.abutalabs.com/products/mink
Homepage: https://mink.behat.org/
Language: PHP
License: MIT
License Family: permissive
Topics: php, mink, browser-automation
Last push: 2025-11-22T12:24:05+00:00

## Health v2 (maintenance only)
Score: 53/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 53, release rhythm 25, longevity 100
- inputs: {"age_days": 5630, "days_push": 284, "days_rel": 284, "gap_med": 387, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1611, forks 288 (observed 2026-08-28T04:05:11.006767+00:00)

## What it is
Mink is a PHP library providing an abstraction layer over web browser emulators and drivers (like Goutte, Selenium) for controlling browsers in tests. It lets you write browser-based acceptance tests against a unified API regardless of the underlying driver.

## Use cases
- automate browser interactions in PHP tests
- write acceptance tests for web apps with Behat
- click links and fill forms programmatically
- swap between headless and real browser drivers without changing test code
- scrape web pages with a session-based browser emulator

## When to choose
- you are writing Behat or PHPUnit acceptance tests in PHP
- you want a driver-agnostic API for browser automation
- you need to mix multiple browser sessions in one test suite

## When to avoid
- you need a real browser with JavaScript rendering outside a testing context
- your project is not PHP-based
- you only need simple HTTP requests without browser semantics

## Facets
- artifact type: library
- maturity: active
- function: testing, e2e-testing, web-scraping, http-client
- domain: testing, web-development
- platform: php, cross-platform
- tags: browser-emulation, behat, acceptance-testing, web-automation, automation

## Member repositories
- minkphp/Mink (main) score 53

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:11.006767+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-30T03:51:12.312273+00:00, confidence not recorded.
  - readme: https://github.com/minkphp/Mink (fetched 2026-08-28T04:05:11.006767+00:00, sha f3950753c80e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
