PHPackages                             tigitz/php-spellchecker - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. tigitz/php-spellchecker

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

tigitz/php-spellchecker
=======================

Provides an easy way to spellcheck multiple text source by many spellcheckers, directly from PHP

0.8.0(1y ago)309498.4k↑47.7%30[2 issues](https://github.com/tigitz/php-spellchecker/issues)[1 PRs](https://github.com/tigitz/php-spellchecker/pulls)1MITPHPPHP ^8.2

Since Feb 10Pushed 1y ago8 watchersCompare

[ Source](https://github.com/tigitz/php-spellchecker)[ Packagist](https://packagist.org/packages/tigitz/php-spellchecker)[ Docs](https://github.com/tigitz/php-spellchecker)[ RSS](/packages/tigitz-php-spellchecker/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (7)Dependencies (17)Versions (27)Used By (1)

PHP-Spellchecker
================

[](#php-spellchecker)

 [![PHP-Spellchecker](https://camo.githubusercontent.com/109d0df868842318219264348132065cf5d7c5bdc9eb59f2cbace65d79d30363/68747470733a2f2f692e696d6775722e636f6d2f433868487757392e706e67)](https://camo.githubusercontent.com/109d0df868842318219264348132065cf5d7c5bdc9eb59f2cbace65d79d30363/68747470733a2f2f692e696d6775722e636f6d2f433868487757392e706e67)

 [![Build Status](https://camo.githubusercontent.com/e4b4c3e6a703b95db3a35aadd1dd95ea035b2bd7c70e35c8014a59eeb09aec22/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f636865636b2d72756e732f74696769747a2f7068702d7370656c6c636865636b65722f6d61737465723f6c6f676f3d676974687562267374796c653d666c61742d737175617265)](https://github.com/tigitz/php-spellchecker/actions) [![Code coverage](https://camo.githubusercontent.com/95016e98bfd6853bd5fe78c1cd0ee375c2c4912b4ff051b582fd81683c22ddba/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636f762f632f6769746875622f74696769747a2f7068702d7370656c6c636865636b65722f6d61737465722e7376673f7374796c653d666c61742d737175617265266c6f676f3d636f6465636f76)](https://codecov.io/gh/tigitz/php-spellchecker/branch/master) [![Code coverage](https://camo.githubusercontent.com/8a8f99a289a3978ec0fa197649001781281f750facb77f6449e446e619607ab5/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f74696769747a2f7068702d7370656c6c636865636b65722e7376673f7374796c653d666c61742d737175617265266c6f676f3d7363727574696e697a6572)](https://scrutinizer-ci.com/g/tigitz/php-spellchecker/?branch=master) [![PHP-Spellchecker chat room](https://camo.githubusercontent.com/69d7d82a4abd3eaba20da1a8dbd08c575d5b4c31add6a05180f3d9f05631da97/68747470733a2f2f696d672e736869656c64732e696f2f6769747465722f726f6f6d2f74696769747a2f7068702d7370656c6c636865636b65722e7376673f7374796c653d666c61742d737175617265)](https://gitter.im/php-spellchecker/php-spellchecker) [![License](https://camo.githubusercontent.com/5f83970b52a36b5c228598456dcfa5d689858ad70007b464e57d38df3f68c363/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f74696769747a2f7068702d7370656c6c636865636b65722e7376673f7374796c653d666c61742d737175617265)](https://choosealicense.com/licenses/mit/)

Check misspellings from any text source with the most popular PHP spellchecker.

---

About
=====

[](#about)

PHP-Spellchecker is a spellchecker abstraction library for PHP. By providing a unified interface for many different spellcheckers, you’re able to swap out spellcheckers without extensive rewrites.

Using PHP-Spellchecker can eliminate vendor lock-in, reduce technical debt, and improve the testability of your code.

Features
========

[](#features)

- 🧐 Supports many popular spellcheckers out of the box: [Aspell](https://tigitz.github.io/php-spellchecker/docs/spellcheckers/aspell.html), [Hunspell](https://tigitz.github.io/php-spellchecker/docs/spellcheckers/hunspell.html), [Ispell](https://tigitz.github.io/php-spellchecker/docs/spellcheckers/ispell.html), [PHP Pspell](https://tigitz.github.io/php-spellchecker/docs/spellcheckers/php-pspell.html), [LanguageTools](https://tigitz.github.io/php-spellchecker/docs/spellcheckers/languagetools.html), [JamSpell](https://tigitz.github.io/php-spellchecker/docs/spellcheckers/jamspell.html) and [MultiSpellchecker](https://tigitz.github.io/php-spellchecker/docs/spellcheckers/multispellchecker.html) [(add yours!)](https://tigitz.github.io/php-spellchecker/docs/spellcheckers/create-custom.html)
- 📄 Supports different text sources: file system [file](https://tigitz.github.io/php-spellchecker/docs/text-sources/file.html)/[directory](https://tigitz.github.io/php-spellchecker/docs/text-sources/directory.html), [string](https://tigitz.github.io/php-spellchecker/docs/text-sources/php-string.html), and [multi-source](https://tigitz.github.io/php-spellchecker/docs/text-sources/multisource.html) [(add yours!)](https://tigitz.github.io/php-spellchecker/docs/text-sources/create-custom.html)
- 🛠 Supports text processors: [MarkdownRemover](https://tigitz.github.io/php-spellchecker/docs/text-processors/markdown-remover.html) [(add yours!)](https://tigitz.github.io/php-spellchecker/docs/text-processors/create-custom.html)
- 🔁 Supports misspelling handlers: [EchoHandler](https://tigitz.github.io/php-spellchecker/docs/misspellings-handlers/echohandler.html) [(add yours!)](https://tigitz.github.io/php-spellchecker/docs/misspellings-handlers/create-custom.html)
- ➰ Makes use of generators to reduce memory footprint
- ⚖ Flexible and straightforward design
- 💡 Makes it a breeze to implement your own spellcheckers, text processors and misspellings handlers
- 💪 Runs tests against real spellcheckers to ensure full compatibility

**PHP-Spellchecker** is a welcoming project for new contributors.

Want to make **your first open source contribution**? Check the [roadmap](#roadmap), pick one task, [open an issue](https://github.com/tigitz/php-spellchecker/issues/new) and we'll help you go through it 🤓🚀

Install
=======

[](#install)

Via Composer

```
composer require tigitz/php-spellchecker
```

Usage
=====

[](#usage)

[Check out the documentation](https://tigitz.github.io/php-spellchecker) and [examples](https://github.com/tigitz/php-spellchecker/tree/master/examples)

Using the spellchecker directly
-------------------------------

[](#using-the-spellchecker-directly)

You can check misspellings directly from a `PhpSpellcheck\Spellchecker` class and process them on your own.

```
