Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

squibby's avatar

Enable Enchant spelling in PHP?

Hi,

I need to enable the Enchant php extension in PHP (I am using Homestead). Has anyone done this before or know anything about it??

I want to enable it so I can check spelling from the TinyMce text editor... I have looked in the php.ini file and cannot see any reference to it..

Does anyone have any idea how to enable it?

Thanks.

0 likes
2 replies
squibby's avatar
squibby
OP
Best Answer
Level 8

@braunson thanks but I gave up in the end with enchant. TinyMce have recommended Enchant but from my reading on it (the php docs are not too great on this topic) its seems a bit difficult to get working.

i had already tried the solution above and although Enchant was showing as enabled in phpinfo the enchant php methods were just not recognised...

I have though found a solution by installing php-spellchecker which can be found here:

https://tigitz.github.io/php-spellchecker/docs/getting-started/quick-start.html

Then customizing my response to what is expected by TinyMce. Hopefully that will assist anyone else in the same boat.

Thanks.

Please or to participate in this conversation.