Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

phpstan-watcher

TimVdWalle135MIT2.1.0

Watches for changes in php files ans launches phpstan/larastan automatically

phpstan, watcher, php, larastan, laravel, static code analysis

readme

phpstan-watcher


✨ Getting Started In 4 easy Steps

1: First, you may use npm to install phpstan-watcher globally:

npm i -g phpstan-watcher

2: Then, install phpstan and/or larastan

3: Important: create script shortcuts in composer.json

        "analyse": [
            "./vendor/bin/phpstan analyse"
        ],
        "analyse-json": [
            "./vendor/bin/phpstan analyse --error-format=json"
        ]

4: Finally, start phpstan-watcher in the root of your project folder

npm exec phpstan-watcher

or

npx phpstan-watcher

📖 Notification

For the notifications to work : on mac you should allow terminal notifications

📖 License

Phpstan-watcher is an open-sourced software licensed under the ISC License.

📖 Author

Tim Vande Walle