PHPackages                             hbg-php/hit - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. hbg-php/hit

ActiveLibrary[CLI &amp; Console](/categories/cli)

hbg-php/hit
===========

Hit is a CLI tool that detects wording / or spelling mistakes in your codebase.

010PHP

Since Dec 27Pushed 1y agoCompare

[ Source](https://github.com/hbg-php/hit)[ Packagist](https://packagist.org/packages/hbg-php/hit)[ RSS](/packages/hbg-php-hit/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (12)Used By (0)

 [![Hit example](https://raw.githubusercontent.com/hbg-php/hit/main/docs/logo-hit.png)](https://raw.githubusercontent.com/hbg-php/hit/main/docs/logo-hit.png)

 [ ![GitHub Workflow Status (main)](https://camo.githubusercontent.com/f615bba363e5474660e2f6a4732f9f52c9fd8d27e3abde9ed11596722d705403/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6862672d7068702f6869742f74657374732e796d6c) ](https://github.com/hbg-php/hit/actions) [ ![Total Downloads](https://camo.githubusercontent.com/b7a866454b0efd502177d77b30c2b0bc5a4573ab6dea38c90e0ab108dcb3658a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6862672d7068702f686974) ](https://packagist.org/packages/hbg-php/hit) [ ![Latest Version](https://camo.githubusercontent.com/7fc992bbf71e4d52be6a3767a6e5c26a1281fc7916010cdc7f1cdbb6d210db4b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6862672d7068702f686974) ](https://packagist.org/packages/hbg-php/hit) [ ![License](https://camo.githubusercontent.com/d6a19404ec0ce968aa3f837f5f823897a15e4fc00a2c40566ff4725e36e1858a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6862672d7068702f686974) ](https://packagist.org/packages/hbg-php/hit)

---

**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](https://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
-------------

[](#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
-----------------

[](#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
------------

[](#installation)

> **Requires [PHP 8.3+](https://php.net/releases/)**

You can require Hit using [Composer](https://getcomposer.org) with the following command:

```
composer require hbg-php/hit
```

Usage
-----

[](#usage)

To check your project for spelling mistakes, run:

```
./vendor/bin/hit
```

---

Hit is an open-sourced software licensed under the **[MIT license](https://opensource.org/licenses/MIT)**.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance31

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/b57e58a2241df1288c99dd18af2736419d3ba75f994836b411868fabb4b18ec2?d=identicon)[hugomatheuss](/maintainers/hugomatheuss)

---

Top Contributors

[![hugomatheuss](https://avatars.githubusercontent.com/u/48367803?v=4)](https://github.com/hugomatheuss "hugomatheuss (18 commits)")

### Embed Badge

![Health badge](/badges/hbg-php-hit/health.svg)

```
[![Health](https://phpackages.com/badges/hbg-php-hit/health.svg)](https://phpackages.com/packages/hbg-php-hit)
```

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.1k17.2M320](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/packages/consolidation-annotated-command)[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24725.8M17](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)[codedungeon/php-cli-colors

Liven up you PHP Console Apps with standard colors

10210.1M26](/packages/codedungeon-php-cli-colors)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
