# coduo/php-humanizer

Humanize values that are readable only for developers.

Repository: https://github.com/coduo/php-humanizer
Canonical: https://ross.abutalabs.com/products/php-humanizer
Language: PHP
License: MIT
License Family: permissive
Last push: 2025-12-11T21:35:15+00:00

## Health v2 (maintenance only)
Score: 58/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 56, release rhythm 36, longevity 100
- inputs: {"age_days": 4516, "days_push": 265, "days_rel": 265, "gap_med": 160.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1667, forks 110 (observed 2026-08-28T04:05:19.675929+00:00)

## What it is
A PHP library that converts developer-oriented values like snake_case identifiers, byte sizes, numbers, and dates into human-readable text. It also provides word-boundary string truncation, including HTML-aware truncation.

## Use cases
- convert snake_case field names to readable labels
- truncate long text to the nearest word with an ellipsis
- truncate HTML content without breaking tags
- format byte sizes for humans
- display relative dates like '2 days ago'
- humanize numbers into words

## When to choose
- you need to show developer-facing values to non-technical users in a PHP app
- you need safe HTML truncation for previews or excerpts
- you want localized human-readable formatting in PHP

## When to avoid
- your project is not written in PHP
- you need full NLP or text summarization rather than simple formatting
- you need template or front-end humanization rather than server-side

## Facets
- artifact type: library
- maturity: active
- function: nlp, internationalization, developer-tools
- domain: developer-tools, web-development
- platform: php
- tags: humanization, string-formatting, text-truncation, php-library, localization

## Member repositories
- coduo/php-humanizer (main) score 58

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:19.675929+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:42:52.569330+00:00, confidence not recorded.
  - readme: https://github.com/coduo/php-humanizer (fetched 2026-08-28T04:05:19.675929+00:00, sha 444ae67de47b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
