Search by

kallookoo / wp-stubs

kallookoo

PHP stubs for the WordPress ecosystem

Package info

github.com/kallookoo/wp-stubs

pkg:composer/kallookoo/wp-stubs

Fund package maintenance!

kallookoo

www.paypal.me/kallookoo

Statistics

Installs: 5

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.2.0 2026-11-02 16:48 UTC

This package is auto-updated.

Last update: 2026-11-02 17:37:05 UTC


README

This repository uses the php-stubs to:

  1. Have all stubs registered within the stubs folder
  2. Have a single file with all stubs

Stub packages:

Note

wordpress-globals is DEPRECATED but is still being kept for the time being.

Warning

The combined stubs.php file will be removed in a future major release. It only exists for PHPantom <=0.11.1; use the individual files in the stubs/ folder instead.

Usage in PHPantom (<=0.11.1)

  • Install
composer require --dev kallookoo/wp-stubs
  • Configure it so phpantom detects it
{
  "autoload-dev": {
    "files": ["vendor/kallookoo/wp-stubs/stubs.php"]
  }
}

Or load only what you need

{
  "autoload-dev": {
    "files": ["vendor/kallookoo/wp-stubs/stubs/wordpress-stubs.php"]
  }
}
  • Update

Run composer update to refresh the stub package

Usage in PHPantom (> 0.11.1)

More info at:

My recommendation if you use it regularly:

  • Install it globally
composer global require --dev kallookoo/wp-stubs
  • Configure PHPantom globally
[stubs]
paths = ["COMPOSER_HOME/vendor/kallookoo/wp-stubs/stubs"]

Replace COMPOSER_HOME with the correct path.

composer config --global home

More info: https://getcomposer.org/doc/03-cli.md#composer_home