hbg-php / hit
Hit is a CLI tool that detects wording / or spelling mistakes in your codebase.
Requires
- php: ^8.3.0
- ext-enchant: *
- nunomaduro/termwind: ^2.3
- symfony/console: ^7.2.1
- symfony/finder: ^7.2
- tigitz/php-spellchecker: ^0.7.0
Requires (Dev)
- laravel/pint: ^1.18.3
- pestphp/pest: ^3.7.1
- pestphp/pest-plugin-type-coverage: ^3.2.1
- phpstan/phpstan: ^1.12.13
- rector/rector: ^1.2.10
- symfony/var-dumper: ^7.2.0
This package is not auto-updated.
Last update: 2025-05-23 14:39:36 UTC
README
Hit is a powerful CLI tool designed to identify wording or spelling mistakes in your codebase. Built for speed, simplicity, and seamless integration.
Leveraging the robust capabilities of github.com/tigitz/php-spellchecker
Note: Hit is still under active development and is not yet ready for production use. Currently, only the filesystem checker is implemented, focusing exclusively on detecting spelling mistakes in file and folder names.
Prerequisites
To use Hit, you need to have Aspell installed on your system. Aspell is a spelling checker tool that Hit uses to detect spelling errors.
Installing Aspell
On Ubuntu or Debian-based distributions, you can install Aspell using the following commands:
sudo apt-get install aspell aspell-pt
If you need the English dictionary, use the command below:
sudo apt-get install -y aspell aspell-en
Installation
Requires PHP 8.3+
You can require Hit using Composer with the following command:
composer require hbg-php/hit
Usage
To check your project for spelling mistakes, run:
./vendor/bin/hit
Hit is an open-sourced software licensed under the MIT license.