PHPackages                             codeconjure/php-hunspell - 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. codeconjure/php-hunspell

ActivePhp-ext[Utility &amp; Helpers](/categories/utility)

codeconjure/php-hunspell
========================

PHP binding for the Hunspell spell-checker and morphological analyzer

0.1.0(2w ago)01↓100%PHP-3.01C++PHP &gt;=8.2CI passing

Since May 20Pushed 2w ago1 watchersCompare

[ Source](https://github.com/connorhu/php-hunspell)[ Packagist](https://packagist.org/packages/codeconjure/php-hunspell)[ RSS](/packages/codeconjure-php-hunspell/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

php-hunspell
============

[](#php-hunspell)

[![CI](https://github.com/connorhu/php-hunspell/actions/workflows/ci.yml/badge.svg)](https://github.com/connorhu/php-hunspell/actions/workflows/ci.yml)

PHP 8.2+ binding for the [Hunspell](https://hunspell.github.io/) spell-checker and morphological analyzer. Exposes spell-check, suggestions, morphological analysis (`analyze`, `stem`, `generate`), runtime dictionary mutation (`add`, `addWithAffix`, `remove`, `addDictionary`), and dictionary metadata.

Requirements
------------

[](#requirements)

- PHP 8.2 or newer (NTS or ZTS)
- libhunspell 1.6.0 or newer + its development headers
- pkg-config
- A C++17-capable compiler

Install via PIE (recommended)
-----------------------------

[](#install-via-pie-recommended)

```
pie install codeconjure/php-hunspell
```

Install via phpize
------------------

[](#install-via-phpize)

```
git clone https://github.com/connorhu/php-hunspell.git
cd php-hunspell
phpize
./configure --enable-hunspell
make
sudo make install
echo "extension=hunspell.so" | sudo tee /etc/php/conf.d/hunspell.ini
```

Usage
-----

[](#usage)

```
