What The Diff: Get AI-powered pull request summaries and weekly reports automatically. What The Diff: Get AI-powered pull request summaries and weekly reports automatically. Create free account
Syntax-aware proofreading for your Laravel application.
The Laravel Prose Linter helps you to polish the texts of your Laravel application. Let it check your translations and even your blade templates for typos, slang and get suggestions for a better writing style depending on which prose style you choose.
We recommend to take a quick glimpse at the errata-ai/vale package to learn what prose linting is all about.
This package requires PHP 8.0 or higher.
You can install the package via composer:
~ composer require beyondcode/laravel-prose-linter
If you want to customize the styles used by the linter (see here), publish the config and the style assets:
~ php artisan vendor:publish --tag=linting-config
~ php artisan vendor:publish --tag=linting-styles
With that, you're ready to lint!
~ php artisan lint:translation auth validation
π£ Start linting ...
2/2 [ββββββββββββββββββββββββββββ] 100%
+---------------------------------+------+----------+--------------------------------------------------------------------+----------+---------------------+
| Key. | Line | Position | Message | Severity | Condition |
+---------------------------------+------+----------+--------------------------------------------------------------------+----------+---------------------+
| auth.throttle | 1 | 5 | 'many' is a weasel word! | warning | write-good.Weasel |
| validation.accepted | 1 | 21 | 'be accepted' may be passive voice. Use active voice if you can. | warning | write-good.Passive |
[...]
+---------------------------------+------+----------+--------------------------------------------------------------------+----------+---------------------+
17 linting hints were found.
Applied styles: WriteGood, Vale
π Finished linting in 8 seconds.
The must-have tinker tool for every PHP and Laravel developer. This magical desktop app may not be able to fly. But when it comes to PHP code, it sure knows how to run.
Learn more