# JetBrains/phpstorm-stubs

PHP runtime & extensions header files for PhpStorm

Repository: https://github.com/JetBrains/phpstorm-stubs
Canonical: https://ross.abutalabs.com/products/phpstorm-stubs
Homepage: http://jetbrains.com/phpstorm
Language: PHP
License: Apache-2.0
License Family: permissive
Last push: 2026-08-21T15:19:21+00:00

## Health v2 (maintenance only)
Score: 89/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 98, release rhythm 70, longevity 100
- inputs: {"age_days": 4173, "days_push": 12, "days_rel": 42, "gap_med": 99, "n_releases_24m": 4}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1394, forks 825 (observed 2026-08-28T04:04:36.367343+00:00)

## What it is
A collection of syntactically correct PHP stub files describing the signatures, constants, and PHPDoc annotations of PHP core and standard extensions. PhpStorm and other tools use these stubs for code completion, type inference, inspection, and documentation popups.

## Use cases
- improve php code completion for built-in functions
- get accurate return types for php standard library in ide
- run static analysis on php code using core extension signatures
- use php stubs outside phpstorm for type inference
- contribute corrections to php runtime function documentation

## When to choose
- you need accurate signatures and PHPDoc for PHP built-in functions and extensions
- you build PHP tooling (linters, analyzers, IDEs) that requires runtime metadata
- you want to customize or extend PhpStorm's default stubs

## When to avoid
- you need stubs for third-party Composer packages rather than PHP core and extensions
- you need guaranteed-accurate @throws annotations, which are not validated by tests
- you need runtime functionality - stubs are metadata only and contain no implementations

## Facets
- artifact type: library
- maturity: active
- function: type-system, documentation, developer-tools
- domain: developer-tools, programming-languages, web-development
- platform: php, cross-platform
- tags: php-stubs, ide-support, code-completion, static-analysis, phpdoc, type-inference

## Member repositories
- JetBrains/phpstorm-stubs (main) score 89

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:36.367343+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-30T04:39:25.439575+00:00, confidence not recorded.
  - readme: https://github.com/JetBrains/phpstorm-stubs (fetched 2026-08-28T04:04:36.367343+00:00, sha 2f0b2482d6fc)
  - homepage: http://jetbrains.com/phpstorm (fetched 2026-08-29T11:54:11.878011+00:00, sha 20ea0b135dd7)
  - site_page: https://www.jetbrains.com/phpstorm/features (fetched 2026-08-29T11:54:11.880983+00:00, sha ee4230b9cd51)
  - site_page: https://www.jetbrains.com/phpstorm/features/ai-assistant (fetched 2026-08-29T11:54:11.884325+00:00, sha 7e68abaf0c5a)
  - site_page: https://www.jetbrains.com/legal/docs/privacy/privacy (fetched 2026-08-29T11:54:11.890681+00:00, sha 5818b25a9c36)
  - site_page: https://www.jetbrains.com/legal/docs/company/useterms (fetched 2026-08-29T11:54:11.893858+00:00, sha 4a140f196063)
  - site_page: https://www.jetbrains.com/phpstorm/buy (fetched 2026-08-29T11:54:11.882696+00:00, sha 6b73edd44600)
  - site_page: https://www.jetbrains.com/store (fetched 2026-08-29T11:54:11.885896+00:00, sha d0c97d92d60b)
  - site_page: https://www.jetbrains.com/help (fetched 2026-08-29T11:54:11.887389+00:00, sha 001d63ab7dbc)
  - site_page: https://www.jetbrains.com/company (fetched 2026-08-29T11:54:11.888886+00:00, sha e00f97094d79)
- Data as of 2026-08-30T08:39:29.467469+00:00.
