php-stubs/wp-cli-stubs
PHP stub definitions for WP-CLI, providing classes, functions, and constants for IDE autocompletion and static analysis. Helps PHPStan, Psalm, and editors understand WP-CLI APIs without running the command-line tool.
Architecture fit
require-dev artifact and wired into static analysis (PHPStan scanFiles / stubFiles, or Psalm stubFiles). It is an analysis-time contract, not an integration surface.Integration feasibility
php-stubs/wordpress-stubs in the same family, which is the realistic adoption path — teams rarely add this package in isolation.Technical risk
scanFiles.Key questions
Stack fit
Migration path
require-dev entry with a pinned constraint aligned to the WP-CLI version in use.Compatibility
wordpress-stubs; overlapping declarations of WP-CLI-adjacent WordPress functions are the most likely source of friction.Sequencing
Maintenance
Support
Scaling
Failure modes
wordpress-stubs or autoloaded code break analysis outright.Ramp-up
How can I help you explore Laravel packages today?