# brianhaveri/Underscore.php

PHP port of Underscore.js

Repository: https://github.com/brianhaveri/Underscore.php
Canonical: https://ross.abutalabs.com/products/underscorephp
Homepage: https://brianhaveri.github.io/Underscore.php/
Language: PHP
License: MIT
License Family: permissive
Last push: 2021-05-02T17:54:18+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 5580, "days_push": 1949, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1154, forks 144 (observed 2026-08-28T04:03:47.556488+00:00)

## What it is
Underscore.php is a PHP port of the popular Underscore.js utility library, providing functional-style collection, array, and object manipulation helpers. It supports both static and object-oriented call styles and includes unit tests matching the original JavaScript library.

## Use cases
- manipulate arrays and collections in PHP with functional helpers
- use map, reduce, and filter utilities in PHP
- port JavaScript Underscore.js code to PHP
- chain collection transformations in object-oriented style
- work with arrays and objects using a consistent utility API

## When to choose
- you want Underscore.js-style utilities in a PHP project
- you prefer functional collection manipulation over verbose PHP loops
- you need a small, MIT-licensed utility library with matching tests

## When to avoid
- you are starting a modern PHP project where native array functions or newer libraries fit better
- you need actively developed features or recent PHP version support
- you want lodash-style performance optimizations

## Facets
- artifact type: library
- maturity: maintenance
- function: developer-tools
- domain: developer-tools, programming-languages
- platform: php
- tags: utility-library, underscore-port, collections, functional-programming

## Member repositories
- brianhaveri/Underscore.php (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:47.556488+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:33:21.672950+00:00, confidence not recorded.
  - readme: https://github.com/brianhaveri/Underscore.php (fetched 2026-08-28T04:03:47.556488+00:00, sha b6808a0feb8e)
  - homepage: https://brianhaveri.github.io/Underscore.php/ (fetched 2026-08-29T12:37:38.837460+00:00, sha dd75132888e3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
