PHP Syllable splitting and hyphenation

1.6.0 2020-03-05 09:04 UTC

This package is auto-updated.

Last update: 2024-05-25 23:14:20 UTC


PHP from Packagist Codacy Badge Latest Stable Version Total Downloads License


PHP Syllable splitting and hyphenation.


Runs in PHP ^7.2 in an object-oriented way.

This library is based on the work by Corey Ballou which is based on the work by Martijn van der Lee which is based on the work by Frank M. Liang and the many volunteers in the TeX community.

Many languages supported. i.e. english (us/uk), spanish, german, french, dutch, italian, romanian, russian, etc. 76 languages in total.

Language sources:

Please note: Even though v1.6 is ready for the use with PHP ^7.2 we're still not done refactoring this library.


This library is made for the use with Composer. Add it to your project by running $ composer require bitandblack/syllable-php.



use BitAndBlack\Syllable\Syllable;
use BitAndBlack\Syllable\Hyphen\Text;

$syllable = new Syllable(
    new Text('-')

// Su-per-cal-ifrag-ilis-tic-ex-pi-ali-do-cious

// array(';Re', 'dun', 'dan', 't, punc', 'tu', 'a', 'tion...')
$syllable->splitWord(';Redundant, punctuation...');

// array(';Re', 'dun', 'dant, punc', 'tu', 'a', 'tion...')
$syllable->splitText(';Redundant, punctuation...');


If you have any questions feel free to contact us under