Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Wordpress Globals

Wordpress Globals Laravel Package

php-stubs/wordpress-globals

Stub declarations for WordPress globals like $wpdb, $post, and $wp_query, giving PHPStan, Psalm, and other static analyzers accurate types. Pairs with php-stubs/wordpress-stubs to silence undefined-variable warnings and improve autocompletion in plugin and theme code.

Deep Wiki
Context7

php-stubs/wordpress-globals supplies IDE and static-analysis stubs for the global variables defined by WordPress core, filling a gap left by function and class stub packages. It lets tools like PHPStan, Psalm, and PhpStorm recognize $wpdb, $wp_query, $post, $current_user, and other globals without false "undefined variable" warnings.

  • Declares common WordPress globals with accurate types
  • Complements php-stubs/wordpress-stubs for complete coverage
  • Improves autocompletion and refactoring in editors
  • Integrates cleanly with PHPStan/Psalm bootstrap configuration
  • Lightweight, no runtime dependencies
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
diephp/sequences
users-au/socialite-provider
twidpay/twid-logger
mrnewport/laravel-plaid
mrnewport/laravel-repo
mrnewport/laravel-docsign
mrnewport/laravel-stow
mrnewport/laravel-flow
mrnewport/laravel-priceable
mrnewport/laravel-nestedterms
fredmeng/laravel-apidoc-generator
itstructure/laravel-multilingual-tools
pdustdar/elasticsearch
markupai/php-sdk
rlacerda83/lumem-microservice-shipment
uni-method/symfony-lib