empi89/php-amqp-stubs
Provides PHP stub files for AMQP-related extensions, improving IDE autocomplete, static analysis, and type hints in projects that use AMQP functions/classes without bundling the actual extension. Useful for CI, analysis, and editor support.
Use Case Alignment: This package provides stubs (type hints and autocompletion support) for pdezwart/php-amqp, a PHP AMQP client library. It is not a functional implementation but rather a static analysis tool to improve IDE support (e.g., PHPStorm, VSCode) for AMQP-related code.
rdkafka, Redis Pub/Sub, or native HTTP APIs), this package offers no direct value.Key Dependencies:
pdezwart/php-amqp (the actual AMQP client) to function.composer require.php-amqp library evolves. Risk is low if the stubs are kept in sync (e.g., via Packagist updates).pdezwart/php-amqp for AMQP messaging?
php-amqp?
pdezwart/php-amqp.php-amqp is in use (composer.json check).composer install or tests).composer.json:
"require-dev": {
"empi89/php-amqp-stubs": "^x.y.z"
}
composer update and validate IDE behavior.php-amqp docs for actual usage.require-dev.php-amqp:1.10.0 won’t work with 1.11.0).
php-amqp version in composer.json if stubs are version-specific.pecl install amqp) for runtime functionality.php-amqp is installed and functional.composer.json and update dependencies.php-amqp changes its API (e.g., new methods/classes).empi89/php-amqp-stubs for updates (though updates are likely rare).php-amqp version to avoid mismatches.| Failure Scenario | Likelihood | Impact | Mitigation |
|---|---|---|---|
Stubs lag behind php-amqp API |
Medium | IDE errors, confusion | Pin php-amqp version; test stubs. |
| IDE ignores stubs | Low | No autocompletion | Document IDE setup; use PHPStorm. |
| Developers assume stubs = runtime | High | Bugs from untested code | Training; emphasize stubs are static. |
| PHP < 8.0 | Low | Stubs fail silently | Enforce PHP 8.0+ in CI. |
How can I help you explore Laravel packages today?