org_heigl / hyphenator
Word-Hyphenation for PHP based on the TeX-Hyphenation algorithm
Installs: 1 147 005
Dependents: 11
Suggesters: 1
Security: 0
Stars: 54
Watchers: 7
Forks: 14
Open Issues: 5
Requires
- php: ^7.2||^8.0
- ext-mbstring: *
Requires (Dev)
- mockery/mockery: ^1.2
- phpunit/phpunit: ^8.0||^9.0
- dev-main
- v3.1.0
- v3.0.0
- v2.6.1
- v2.6.0
- v2.5.0
- v2.4.0
- v2.3.2
- v2.3.1
- v2.3.0
- v2.2.0
- v2.1.0
- v2.0.6
- v2.0.5
- v2.0.4
- v2.0.3
- v2.0.2
- dev-AddServiceProviderTest
- dev-dependabot/add-v2-config-file
- dev-addAction
- dev-allowOwnDictionaries
- dev-addFixes
- dev-cleanup
- dev-fixEmptyWhitespaceTokens
- dev-fixDocs
- dev-optimizeReadme
- dev-setPHP72AsDefault
- dev-feature/addCustomTokenizer
- dev-fixQuality
- dev-feature/adaptToPsr4
- dev-feature/adaptPhp7
- dev-feature/AdaptTravis
- dev-russianHyphenationPatterns
This package is auto-updated.
Last update: 2024-12-12 16:53:48 UTC
README
This library provides TeX-Hyphenation in PHP.
Requirements:
This package has the following requirements:
- PHP-Version >= 7.2
- Multibyte-Extension loaded
- Input has to be UTF8-encoded.
On loading the \Org\Heigl\Hyphenator\Hyphenator
-class the internal encoding for
the Multibyte-String-Extension will be set to UTF8.
Installation:
This package is best installed via composer:
composer require org_heigl/hyphenator
More information can be found in the doc-section
Usage:
use \Org\Heigl\Hyphenator as h; // Create a hyphenator-instance based on a given config-file $hyphenator = h\Hyphenator::factory('/path/to/the/config/file.properties'); // And hyphenate a given string echo $hyphenator->hyphenate('Hyphenation'); // Hy-phe-na-ti-on
Documentation:
More documentation can be found at http://orgheiglhyphenator.readthedocs.org/en/latest/
Build-Status of the latest release can be found at http://travis-ci.org/#!/heiglandreas/Org_Heigl_Hyphenator
Legal Stuff
Copyright (c) 2011-2016 Andreas Heiglandreas@heigl.org
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.