berry/extension-method-stub-generator
Composer plugin that scans dependencies for berry-method-extensions.json and generates PHP stub files for Berry “extension methods”. Improves IDE autocomplete and supports static analysis (e.g., PHPStan) by exposing fluent methods via generated stubs.
berry/htmx, berry/laravel) by automating stub generation, making it easier to extend core functionality.Use this if:
berry/htmx, berry/laravel) and developers struggle with IDE autocompletion or PHPStan errors for extension methods.Look elsewhere if:
php-stub).*"This is a low-risk, high-reward tool to supercharge our PHP/Laravel developers. By automating IDE stub generation for Berry extension methods, we can:
php-stub).Ask: Should we pilot this in [Project X] to measure impact on developer productivity? Budget: ~$0 (open-source)."*
*"The Berry Extension Method Stub Generator is a Composer plugin that auto-generates IDE stubs (PhpStorm/VSCode) and PHPStan support for custom Berry extension methods. Here’s why it’s worth trying:
berry-method-extensions.json and generates stubs.berry/htmx, it auto-detects methods like hxGet() and provides type hints/docs, so IDEs recognize them as first-class methods.@method annotations).Key Metric to Track: "% reduction in IDE/PHPStan-related developer blockers."
How can I help you explore Laravel packages today?