Skip to content

typearea/hyphenator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hyphenator

Hyphenator is an object-oriented and cache-enabled port of phpHyphenator(http://phphyphenator.yellowgreen.de/) which is a PHP port of the JavaScript Hyphenator by Mathias Nater(http://code.google.com/p/hyphenator/).

Installation

Just add typearea/hyphenator to Your composer.json and run composer.phar update to add Hyphenator to Your project.

Usage

see sample.php

Performance

Consider using MemcachedCache or ApcCache to improve performance. When a cache is present, Hyphenator will cache calls to the hyphenate() method and only translate a text if needed. Hyphenator will also cache the conversion of language patterns after including, which is CPU-heavy.

About

Object-oriented port of Hyphenator.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%