https://github.com/behat/transliterator
Behat Transliterator library inherited from Doctrine1 and used in Behat for snippet generation
https://github.com/behat/transliterator
php
Last synced: 6 months ago
JSON representation
Behat Transliterator library inherited from Doctrine1 and used in Behat for snippet generation
- Host: GitHub
- URL: https://github.com/behat/transliterator
- Owner: Behat
- License: other
- Created: 2014-01-12T14:55:54.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2024-04-13T08:32:44.000Z (over 1 year ago)
- Last Synced: 2025-04-28T14:15:26.552Z (7 months ago)
- Topics: php
- Language: PHP
- Size: 241 KB
- Stars: 2,063
- Watchers: 14
- Forks: 32
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
Behat Transliterator
====================
This package is abandoned
-------------------------
This package is now abandoned and will not receive further updates. The underlying transliteration
dataset it is based on has not been updated since 2016, and there are now better options available.
Additionally, there are some complications around licensing (see [#3](https://github.com/Behat/Transliterator/issues/3))
due to the mixed licenses of the original packages it was based on.
Suggested alternatives include:
* symfony/string for generating slugs
* the native `Transliterator` class built into PHP's `ext-intl` for transliterating text.
Unlike this package, that can also respect locale-dependent transliterations.
* The `//TRANSLIT` feature of PHP's native `iconv()` extension (available by default)
Behat Transliterator provides transliteration utilities for PHP.
Transliteration data are ported from the [Perl Text-Unidecode module](https://metacpan.org/pod/Text::Unidecode).
[](https://packagist.org/packages/behat/transliterator)
[](https://github.com/Behat/Transliterator/actions/workflows/ci.yml)
[](https://packagist.org/packages/behat/transliterator)
Installation
------------
The easiest way to install Behat is by using [Composer](https://getcomposer.org):
```bash
composer require behat/transliterator
```
Usage
-----
All features of the library are exposed as static public methods in the [``Behat\Transliterator\Transliterator`` class](src/Behat/Transliterator/Transliterator.php).