ehyphen

Simple wrapper for the phpHyphenation library
3 followers

This is a very basic wrapper for the phpHyphenator library. It is based on the JavaScript Hyphenator by Mathias Nater.

Requirements

Only tested with Yii 1.1.12, but should work with previous versions as well.

You must download the phpHyphenator archive from the project page and unzip it inside the extension directory.

Usage

$hyphen = Yii::createComponent('application.extensions.eHyphen.EHyphen');
$article = $hyphen->hyphenation($article);

You can also set a custom language and hyphenation patterns path. Default to current language and patterns subdirectory of the phpHyphenator library.

$hyphen = Yii::createComponent('application.extensions.eHyphen.EHyphen', 'en', '/path/to/patterns/');
$article = $hyphen->hyphenation($article);

Resources

Be the first person to leave a comment

Please to leave your comment.

Create extension
Downloads