php-standard-library/php-standard-library
PHP Standard Library observed · 2026-08-28
Health v2 · maintenance only
94/100
- Activity 99
- Release rhythm 85
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 5
- age_days: 2445
- days_rel: 102
- days_push: 7
- n_releases_24m: 26
Adoption not part of the score
1561 stars · 91 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
PSL is a standard library for PHP inspired by Hack's HSL, providing consistent, well-typed APIs for collections, async, I/O, cryptography, validation, and terminal UI. It replaces PHP's inconsistent built-in functions with safer, async-ready alternatives that fail predictably.
Use cases
- validate and coerce untrusted input with type combinators
- run concurrent tasks with structured concurrency in PHP
- work with collections using type-safe functional operations
- hash passwords and generate secure random values
- build terminal UIs with ANSI support
- handle multibyte strings and grapheme clusters correctly
- perform non-blocking TCP and network I/O
When to choose
- you want a consistent, type-safe alternative to PHP's scattered built-in functions
- you need structured async concurrency in PHP without promise/callback complexity
- you're building PHP 8.4+ applications that benefit from strict typing and predictable errors
When to avoid
- you must support PHP versions older than 8.4
- you're maintaining a legacy codebase deeply tied to native PHP functions
- you only need a tiny utility and don't want a full standard library dependency
Facets
library · maturity active
serialization cryptography concurrency http-client cli file-system math logging networking developer-tools programming-languages web-development php cli cross-platform standard-library type-safety async fibers collections data-structures terminal-ui type-assertion multibyte-strings password-hashing command-line
2 sources
- readme: https://github.com/php-standard-library/php-standard-library · fetched 2026-08-28 · 3e4ea8e0bfa3
- homepage: https://php-standard-library.dev · fetched 2026-08-29 · 7099da25d318
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| php-standard-library/php-standard-library | main | 94 |
For agents
markdown · JSON · MCP: product_card(name="php-standard-library/php-standard-library")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem