This extension is bundled with PHP as of PHP 5.3.0. Before this time, enchant was a PECL extension. Users of versions prior to 5.3.0 may use the » PECL extension.
Provided the required libraries are installed, users of PHP 5.3.0 or later may enable enchant by adding the --with-enchant[=dir] option when compiling PHP.
Windows users must enable php_enchant.dll in order to use this extension.
Note: Additional setup on Windows
In order for this extension to work, there are DLL files that must be available to the Windows system PATH. For information on how to do this, see the FAQ entitled "How do I add my PHP directory to the PATH on Windows". Although copying DLL files from the PHP folder into the Windows system directory also works (because the system directory is by default in the system's PATH), this is not recommended. This extension requires the following files to be in the PATH: libenchant.dll, glib-2.dll, gmodule-2.dll.
Furthermore, it is necessary to copy at least one of the shipped providers in lib/enchant/ to C:\enchant_plugins. This path can be customized by creating the registry value
HKEY_CURRENT_USER\SOFTWARE\Enchant\Config\Module_Dir
and setting it to the desired path.