ehyphen Simple wrapper for the phpHyphenation library

  1. Requirements
  2. Usage
  3. Resources

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

2 0
3 followers
154 downloads
Yii Version: Unknown
License: GPL-2.0
Category: Others
Developed by: fatz
Created on: Aug 5, 2013
Last updated: 10 years ago

Downloads

show all

Related Extensions