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 today

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

17

—

LowBetter than 6% of packages

Maintenance30

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://avatars.githubusercontent.com/u/48367803?v=4)[Hugo Matheus](/maintainers/hugomatheuss)[@hugomatheuss](https://github.com/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

[illuminate/console

The Illuminate Console package.

13046.0M6.5k](/packages/illuminate-console)[styleci/cli

The CLI tool for StyleCI

71470.5k9](/packages/styleci-cli)[winbox/args

Windows command-line formatter

20720.9k21](/packages/winbox-args)[tomatophp/filament-artisan

Simple but yet powerful library for running some artisan commands for FilamentPHP

3275.4k1](/packages/tomatophp-filament-artisan)

PHPackages © 2026

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