nikic/scalar_objects
Extension that adds support for method calls on primitive types in PHP observed · 2026-08-28
Health v2 · maintenance only
48/100
- Activity 36
- Release rhythm 35
- Longevity 100
Flags: no_releases
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4968
- days_rel: n/a
- days_push: 388
- n_releases_24m: 0
Adoption not part of the score
1143 stars · 44 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A PHP C extension that enables method calls on primitive types like strings and arrays, e.g. $str->length(). It serves as a proof-of-concept for prototyping redesigned primitive APIs that could be proposed for inclusion in PHP core.
Use cases
- call methods directly on strings and arrays in PHP
- prototype new PHP primitive type APIs in userland
- design consistent APIs to propose for PHP core
- replace inconsistent PHP string and array functions with object syntax
When to choose
- you are designing or prototyping new PHP core APIs for primitive types
- you want to experiment with object-style syntax on scalars in PHP 7.0-8.1
When to avoid
- you need production-ready code, since this is a proof of concept
- you use the PHP JIT compiler, which is incompatible
- you need PHP 8.2+ support
Facets
library · maturity experimental
programming-language developer-tools programming-languages developer-tools php windows php-extension primitive-types method-calls proof-of-concept api-design linux macos
1 source
- readme: https://github.com/nikic/scalar_objects · fetched 2026-08-28 · d236252c2f11
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| nikic/scalar_objects | main | 48 |
For agents
markdown · JSON · MCP: product_card(name="nikic/scalar_objects")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem