michiruf/laravel-ide-helper-companion

Package that provides convenience features around the barryvdh/laravel-ide-helper package

0.2-rc1 2024-09-02 15:18 UTC

This package is auto-updated.

Last update: 2025-03-14 12:51:14 UTC


README

Run Tests

This is a zero configuration package around barryvdh / laravel-ide-helper. Which aims to integrate easily with PHPStorm.

Installation

composer require --dev michiruf/laravel-ide-helper-companion

Usage

Commands:

php artisan ide-helper-companion {--throttle=0}
php artisan ide-helper-companion:annotate {--D|dir=} {--throttle=0} {--pint}
php artisan ide-helper-companion:generate {--throttle=0}

Command for a file watcher:

php artisan ide-helper-companion --throttle=10

will execute the command only every 10 seconds, and also will retry the current execution after 10 seconds. Append --pint automatically run pint after annotation and so to ensure pint is not permanently conflicting with the generated code.

Example file watcher for WSL and laravel sail

Example file watcher

License

The MIT License (MIT). Please see License File for more information.