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?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?