PHP runtime & extensions header files for PhpStorm
Switch branches/tags
Nothing to show
Clone or download
Maxim.Kolmakov
Latest commit e7ff3c6 Oct 16, 2018
Permalink
Failed to load latest commit information.
.idea Configuration for tests Oct 15, 2018
Core @link and @see tags should use https Oct 16, 2018
Ev Move stub into module Apr 2, 2017
PDO Fix return type for PDO::query() Oct 10, 2018
Parle Replace http with https in doc links Aug 13, 2018
Phar Use https for @link annotations (#367) Aug 13, 2018
Reflection @link and @see tags should use https Oct 16, 2018
SPL @link and @see tags should use https Oct 16, 2018
SQLite Replace http with https in doc links Aug 13, 2018
SimpleXML Change all other links available in HTTPS Oct 16, 2018
SplType Use https for @link annotations (#367) Aug 13, 2018
Zend OPcache @link and @see tags should use https Oct 16, 2018
ZendCache WI-33237 split embedded stubs into modules Mar 7, 2017
ZendDebugger WI-33237 split embedded stubs into modules Mar 7, 2017
ZendUtils WI-33237 split embedded stubs into modules Mar 7, 2017
amqp Change all other links available in HTTPS Oct 16, 2018
apache @link and @see tags should use https Oct 16, 2018
apc Use https for @link annotations (#367) Aug 13, 2018
apcu Use https for @link annotations (#367) Aug 13, 2018
bcmath Use https for @link annotations (#367) Aug 13, 2018
bz2 Use https for @link annotations (#367) Aug 13, 2018
calendar Use https for @link annotations (#367) Aug 13, 2018
com_dotnet rename: "com" -> "com_dotnet" Oct 5, 2018
couchbase Change all other links available in HTTPS Oct 16, 2018
csprng Use https for @link annotations (#367) Aug 13, 2018
ctype Use https for @link annotations (#367) Aug 13, 2018
cubrid @link and @see tags should use https Oct 16, 2018
curl Change all other links available in HTTPS Oct 16, 2018
date Change all other links available in HTTPS Oct 16, 2018
dba Use https for @link annotations (#367) Aug 13, 2018
dom @link and @see tags should use https Oct 16, 2018
enchant Use https for @link annotations (#367) Aug 13, 2018
event Change all other links available in HTTPS Oct 16, 2018
exif Use https for @link annotations (#367) Aug 13, 2018
fann moved fann, judy, mqseries to separate directories Jul 17, 2017
ffmpeg WI-33237 split embedded stubs into modules Mar 7, 2017
fileinfo Replace http with https in doc links Aug 13, 2018
filter Use https for @link annotations (#367) Aug 13, 2018
fpm Partly implemented 7.3.0 changes WI-42885 Jul 23, 2018
ftp Use https for @link annotations (#367) Aug 13, 2018
gd Use https for @link annotations (#367) Aug 13, 2018
gearman Use https for @link annotations (#367) Aug 13, 2018
geoip Use https for @link annotations (#367) Aug 13, 2018
gettext Use https for @link annotations (#367) Aug 13, 2018
gmagick Use https for @link annotations (#367) Aug 13, 2018
gmp Use https for @link annotations (#367) Aug 13, 2018
gnupg Use https for @link annotations (#367) Aug 13, 2018
grpc Change all other links available in HTTPS Oct 16, 2018
hash Change hash_hmac_algos return type to string[] Aug 30, 2018
http Use https for @link annotations (#367) Aug 13, 2018
ibm_db2 Use https for @link annotations (#367) Aug 13, 2018
iconv Fix return type in iconv() Oct 9, 2018
igbinary @link and @see tags should use https Oct 16, 2018
imagick Change all other links available in HTTPS Oct 16, 2018
imap Use https for @link annotations (#367) Aug 13, 2018
inotify @link and @see tags should use https Oct 16, 2018
interbase Use https for @link annotations (#367) Aug 13, 2018
intl @link and @see tags should use https Oct 16, 2018
json Use https for @link annotations (#367) Aug 13, 2018
judy Use https for @link annotations (#367) Aug 13, 2018
ldap Use https for @link annotations (#367) Aug 13, 2018
libevent Replace http with https in doc links Aug 13, 2018
libsodium Make PHPDocs PHPDoc parser compatible Apr 19, 2018
libxml Use https for @link annotations (#367) Aug 13, 2018
mailparse Use https for @link annotations (#367) Aug 13, 2018
mapscript Change all other links available in HTTPS Oct 16, 2018
mbstring @link and @see tags should use https Oct 16, 2018
mcrypt @link and @see tags should use https Oct 16, 2018
memcache @link and @see tags should use https Oct 16, 2018
memcached @link and @see tags should use https Oct 16, 2018
meta WI-43503 Type[] lost after array_change_key_case() Oct 8, 2018
ming Use https for @link annotations (#367) Aug 13, 2018
mongo Change all other links available in HTTPS Oct 16, 2018
mongodb @link and @see tags should use https Oct 16, 2018
mqseries moved fann, judy, mqseries to separate directories Jul 17, 2017
mssql Use https for @link annotations (#367) Aug 13, 2018
mysql Use https for @link annotations (#367) Aug 13, 2018
mysql_xdevapi @link and @see tags should use https Oct 16, 2018
mysqli @link and @see tags should use https Oct 16, 2018
ncurses Use https for @link annotations (#367) Aug 13, 2018
newrelic Update newrelic.php Sep 21, 2018
oauth @return should be omitted for __construct May 30, 2018
oci8 Use https for @link annotations (#367) Aug 13, 2018
odbc Use https for @link annotations (#367) Aug 13, 2018
openssl @link and @see tags should use https Oct 16, 2018
password @link and @see tags should use https Oct 16, 2018
pcntl Use https for @link annotations (#367) Aug 13, 2018
pcre Use https for @link annotations (#367) Aug 13, 2018
pdflib @link and @see tags should use https Oct 16, 2018
pdo_ibm WI-33237 split embedded stubs into modules Mar 7, 2017
pdo_mysql WI-33237 split embedded stubs into modules Mar 7, 2017
pdo_pgsql WI-33237 split embedded stubs into modules Mar 7, 2017
pdo_sqlite WI-33237 split embedded stubs into modules Mar 7, 2017
pgsql Use https for @link annotations (#367) Aug 13, 2018
posix Replace http with https in doc links Aug 13, 2018
pspell Use https for @link annotations (#367) Aug 13, 2018
pthreads @link and @see tags should use https Oct 16, 2018
radius @link and @see tags should use https (test for constants) Oct 16, 2018
rar Use https for @link annotations (#367) Aug 13, 2018
rdkafka Fixed rdkafka extension folder name to be compatible with "Sync Exten… Jul 17, 2018
readline Use https for @link annotations (#367) Aug 13, 2018
recode Use https for @link annotations (#367) Aug 13, 2018
redis @link and @see tags should use https Oct 16, 2018
regex Use https for @link annotations (#367) Aug 13, 2018
rrd Replace http with https in doc links Aug 13, 2018
session @link and @see tags should use https Oct 16, 2018
shmop Correct the type of shared memory identifiers Aug 22, 2018
snmp @link and @see tags should use https Oct 16, 2018
soap Use https for @link annotations (#367) Aug 13, 2018
sockets @link and @see tags should use https Oct 16, 2018
sodium @link and @see tags should use https Oct 16, 2018
solr @link and @see tags should use https Oct 16, 2018
sqlite3 Use https for @link annotations (#367) Aug 13, 2018
sqlsrv @link and @see tags should use https (test for constants) Oct 16, 2018
ssh2 fix return type param Sep 27, 2018
standard Change all other links available in HTTPS Oct 16, 2018
suhosin Use https for @link annotations (#367) Aug 13, 2018
superglobals Change all other links available in HTTPS Oct 16, 2018
svn Use https for @link annotations (#367) Aug 13, 2018
sybase Use https for @link annotations (#367) Aug 13, 2018
sync Use https for @link annotations (#367) Aug 13, 2018
sysvmsg Use https for @link annotations (#367) Aug 13, 2018
sysvsem Use https for @link annotations (#367) Aug 13, 2018
sysvshm Use https for @link annotations (#367) Aug 13, 2018
tests @link and @see tags should use https (test for constants) Oct 16, 2018
tidy Use https for @link annotations (#367) Aug 13, 2018
tokenizer Use https for @link annotations (#367) Aug 13, 2018
uopz @link and @see tags should use https Oct 16, 2018
v8js Rename V8Js.php to v8js.php Mar 9, 2017
wddx Use https for @link annotations (#367) Aug 13, 2018
win32service add more constants Aug 30, 2017
wincache @link and @see tags should use https Oct 16, 2018
xcache WI-33237 split embedded stubs into modules Mar 7, 2017
xdebug Added missing functions, fixed function desciptions May 23, 2017
xhprof @link and @see tags should use https Oct 16, 2018
xml Use https for @link annotations (#367) Aug 13, 2018
xmlreader Use https for @link annotations (#367) Aug 13, 2018
xmlrpc Use https for @link annotations (#367) Aug 13, 2018
xmlwriter Use https for @link annotations (#367) Aug 13, 2018
xsl Use https for @link annotations (#367) Aug 13, 2018
yaf @link and @see tags should use https Oct 16, 2018
yaml Use https for @link annotations (#367) Aug 13, 2018
yar @link and @see tags should use https Oct 16, 2018
zend WI-33237 split embedded stubs into modules Mar 7, 2017
zip @link and @see tags should use https Oct 16, 2018
zlib Use https for @link annotations (#367) Aug 13, 2018
zmq @link and @see tags should use https Oct 16, 2018
.gitignore .gitignore Oct 16, 2018
.travis.yml Fix path to stub.json Apr 20, 2018
CONTRIBUTING.md Update requirements for PR requests Apr 24, 2018
README.md Use https for @link annotations (#367) Aug 13, 2018
composer.json Add test Apr 19, 2018

README.md

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

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

Relevant open issues

Contribution process

Contribution process

Updating the IDE

TBD: Have a full copy of .git repo within IDE and add it as an external library "PHP Runtime" to the project. It should then be easilly updatable both way via normal git methods.

How to run tests

  1. Execute composer install
  2. Execute docker-compose -f tests/docker-compose.yml run php > tests/stub.json
  3. Run the test phpunit tests/TestStubs.php

License

Apache 2