# sebastianbergmann/code-unit

Collection of value objects that represent the PHP code units

Repository: https://github.com/sebastianbergmann/code-unit
Canonical: https://ross.abutalabs.com/products/code-unit
Language: PHP
License: BSD-3-Clause
License Family: permissive
Last push: 2025-05-25T06:37:29+00:00

## Health v2 (maintenance only)
Score: 36/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 23, release rhythm 16, longevity 100
- inputs: {"age_days": 2376, "days_push": 465, "days_rel": 532, "gap_med": 96, "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 1177, forks 7 (observed 2026-08-28T04:03:52.760587+00:00)

## What it is
A PHP library providing a collection of value objects that represent PHP code units such as classes, methods, and functions. It is a low-maintenance component primarily used within the PHPUnit ecosystem.

## Use cases
- represent PHP classes, methods, and functions as value objects
- inspect code unit metadata in static analysis tooling
- support test framework tooling that needs code unit abstractions

## When to choose
- you are building PHP tooling that needs structured representations of code units
- you are already working within the PHPUnit/Sebastian Bergmann ecosystem

## When to avoid
- you need actively maintained or feature-rich code analysis
- you need a full static analysis or reflection framework

## Facets
- artifact type: library
- maturity: maintenance
- function: developer-tools
- domain: developer-tools, testing
- platform: php
- tags: value-objects, code-introspection, phpunit-ecosystem

## Member repositories
- sebastianbergmann/code-unit (main) score 36

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:52.760587+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-30T06:26:18.361194+00:00, confidence not recorded.
  - readme: https://github.com/sebastianbergmann/code-unit (fetched 2026-08-28T04:03:52.760587+00:00, sha 5a892f3852f6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
