webrocker/hyphenator

Hyphenator is a cache-enabled PHP port of the JavaScript Hyphenator.js by Mathias Nater.

Maintainers

Package info

github.com/webrocker/hyphenator

pkg:composer/webrocker/hyphenator

Statistics

Installs: 5 234

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 3

dev-master 2012-08-21 19:29 UTC

This package is not auto-updated.

Last update: 2026-03-28 19:40:59 UTC


README

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 webrocker/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.