2017 © Pedro PelĂĄez
 

library php-transliterator

A PHP < 5.4 fallback for transliterator_transliterate()

image

lukemadhanga/php-transliterator

A PHP < 5.4 fallback for transliterator_transliterate()

  • Thursday, July 26, 2018
  • by LukeMadhanga
  • Repository
  • 1 Watchers
  • 3 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Transliterator

A PHP < 5.4 fallback for transliterator_transliterate(), (*1)

composer require lukemadhanga/php-transliterator, (*2)

PHP 5.4 has a built-in function, transliterator_transliterate() which does exactly what it says on the tin. This class works as a basic fallback for that function which is available from PHP5.4 with the intl package installed., (*3)

Supported Blocks

Basic Latin
Latin-1 Supplement
Latin Extended-A
Latin Extended-B
IPA Extensions Block
Spacing Modifier Letters
Combining Diacritical Marks
Greek and Coptic
Cyrillic
Cyrillic Supplement
Armenian
Georgian
Latin Extended Additional
Greek Extended
General Punctuation
Superscripts and Subscripts
Combining Diacritical Marks for Symbols
Georgian Supplement
Cyrillic Extended-A
Cyrillic Extended-B
Latin Extended-D

Usage

# If no composer:
include_once 'path/to/Transliterator.php';

echo \LukeMadhanga\Transliterator::convert('Antonín Dvoƙák'); // Antonin Dvorak

The Versions

26/07 2018

dev-master

9999999-dev

A PHP < 5.4 fallback for transliterator_transliterate()

  Sources   Download

The Requires

  • php >=5.3.3