phpstorm-stubs

PHP runtime & extensions header files for PhpStorm

  • 所有者: JetBrains/phpstorm-stubs
  • 平台:
  • 许可证: Apache License 2.0
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

phpstorm-stubs

official JetBrains project
Build Status
License
Total Downloads

STUBS are normal, syntactically correct PHP files that contain function & class signatures, constant definitions, etc. for all built-in PHP stuff and most standard extensions. Stubs need to include complete PHPDOC, especially proper @return annotations.

An IDE needs them for completion, code inspection, type inference, doc popups, etc. Quality of most of these services depend on the quality of the stubs (basically their PHPDOC @annotations).

Note that the stubs for “non-standard” extensions are provided as is. (Non-Standard extensions are the ones that are not part of PHP Core or are not Bundled/External - see the complete list here.)

The support for such “non-standard” stubs is community-driven, and we only validate their PHPDoc. We do not check whether a stub matches the actual extension or whether the provided descriptions are correct.

Relevant open issues

Contribution process

Contribution process

Updating the IDE

Have a full copy of the .git repo within an IDE and provide its path in Settings, Languages & Frameworks, PHP, PHP Runtime, Advanced settings, Default stubs path. It should then be easily updatable both ways via normal git methods.

Extensions enabled by default

The set of extensions enabled by default in PhpStorm can change anytime without prior notice. To learn how to view the enabled extensions, look here.

How to run tests

  1. Execute composer install
  2. Execute docker-compose -f docker-compose.yml run php /opt/project/phpstorm-stubs/vendor/bin/phpunit /opt/project/phpstorm-stubs/tests/

How to update stub map

Execute php generate-stub-map and commit the resulting PhpStormStubsMap.php

License

Apache 2

主要指标

概览
名称与所有者JetBrains/phpstorm-stubs
主编程语言PHP
编程语言PHP (语言数: 4)
平台
许可证Apache License 2.0
所有者活动
创建于2015-03-31 10:26:18
推送于2025-07-18 07:52:13
最后一次提交2025-07-18 09:11:06
发布数18
最新版本名称v2024.3 (发布于 2024-12-17 13:24:09)
第一版名称2018.1.2 (发布于 )
用户参与
星数1.4k
关注者数258
派生数810
提交数4.1k
已启用问题?
问题数0
打开的问题数0
拉请求数1525
打开的拉请求数6
关闭的拉请求数220
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?