php-standard-library/php-standard-library
Some data may be outdated — see provenance labels.
PHP Standard Library observed · 2026-09-25
Health v2 · maintenance only
88/100
- Activity 91
- Release rhythm 78
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: 3.5
- age_days: 2493
- days_rel: 150
- days_push: 55
- n_releases_24m: 23
Adoption not part of the score
1570 stars · 91 forks observed · 2026-09-25
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-09-25 · 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 | 88 |
For agents
markdown · JSON · MCP: product_card(name="php-standard-library/php-standard-library")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem