typomedia / enchant
Enchant Spellchecking Library
1.0.0
2023-03-16 06:48 UTC
Requires
- php: >=7.2
- ext-enchant: *
Requires (Dev)
- phpmd/phpmd: ^2.8
- phpunit/phpunit: ^8.5
- squizlabs/php_codesniffer: ^3.6
This package is not auto-updated.
Last update: 2024-11-22 14:04:09 UTC
README
Hunspell based spellchecking library for PHP.
The Library is PSR-1, PSR-4, PSR-12 compliant.
Requirements
>= PHP 7.2
Dependencies
- ext-enchant
Install
composer require typomedia/enchant
Usage
use Typomedia\Enchant\Enchant; $enchant = new Enchant(); $results = $enchant->getSuggestions('en_US', 'experiance'); var_dump($results); //array(2) { // [0]=> string(10) "experience" // [1]=> string(10) "Spencerian" //}