behat/transliterator

This package is abandoned and no longer maintained. No replacement package was suggested.

String transliterator

Installs: 157 846 916

Dependents: 121

Suggesters: 5

Security: 0

Stars: 2 064

Watchers: 14

Forks: 32

Open Issues: 0

v1.5.0 2022-03-30 09:27 UTC

This package is auto-updated.

Last update: 2025-05-07 16:20:08 UTC


README

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) 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.

License CI Total Downloads

Installation

The easiest way to install Behat is by using Composer:

composer require behat/transliterator

Usage

All features of the library are exposed as static public methods in the Behat\Transliterator\Transliterator class.