fresh/transliteration

PHP library for transliteration.

Fund package maintenance!
fre5h

Installs: 97 175

Dependents: 1

Suggesters: 0

Security: 0

Stars: 49

Watchers: 3

Forks: 12

v4.0.1 2025-01-23 14:30 UTC

README

PHP library for transliteration. πŸ‡ΊπŸ‡¦ πŸ‡¬πŸ‡§ πŸ”‘ 🐘

Scrutinizer Quality Score Build Status CodeCov License Latest Stable Version Total Downloads StyleCI Gitter

Requirements 🧐

  • PHP >= 8.1

Installation 🌱

composer req fresh/transliteration='~4.0'

Available transliteration methods 🎁

Using πŸ‘¨β€πŸŽ“

<?php

namespace Acme;

use Fresh\Transliteration\Transliterator;
use Fresh\Transliteration\UkrainianToLatin;

class Foo
{
    public function bar(string $text): void
    {
        // You can use in this way
        $transliterator = new Transliterator();
        $transliteratedText = $transliterator->ukrToLat($text);

        // Or like this
        $transliteratedText = UkrainianToLatin::transliterate($ukrainianText);
    }
}

Some examples of Ukrainian-to-Latin transliteration ℹ️

Contributing 🀝

See CONTRIBUTING file.