Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fre5h/transliteration-php

🇺🇦 🇬🇧 🔡 🐘 PHP library for transliteration.
https://github.com/fre5h/transliteration-php

english latin library php php-library translit transliterate transliterate-ukrainian transliteration ukraine ukrainian

Last synced: 7 days ago
JSON representation

🇺🇦 🇬🇧 🔡 🐘 PHP library for transliteration.

Awesome Lists containing this project

README

        

# Transliteration

PHP library for transliteration. 🇺🇦 🇬🇧 🔡 🐘

[![Scrutinizer Quality Score](https://img.shields.io/scrutinizer/g/fre5h/transliteration-php.svg?style=flat-square)](https://scrutinizer-ci.com/g/fre5h/transliteration-php/)
[![Build Status](https://img.shields.io/github/actions/workflow/status/fre5h/transliteration-php/ci.yaml?branch=main&style=flat-square)](https://github.com/fre5h/transliteration-php/actions?query=workflow%3ACI+branch%3Amain+)
[![CodeCov](https://img.shields.io/codecov/c/github/fre5h/transliteration-php.svg?style=flat-square)](https://codecov.io/github/fre5h/transliteration-php)
[![License](https://img.shields.io/packagist/l/fresh/transliteration.svg?style=flat-square)](https://packagist.org/packages/fresh/transliteration)
[![Latest Stable Version](https://img.shields.io/packagist/v/fresh/transliteration.svg?style=flat-square)](https://packagist.org/packages/fresh/transliteration)
[![Total Downloads](https://img.shields.io/packagist/dt/fresh/transliteration.svg?style=flat-square)](https://packagist.org/packages/fresh/transliteration)
[![StyleCI](https://styleci.io/repos/15205247/shield?style=flat-square)](https://styleci.io/repos/15205247)
[![Gitter](https://img.shields.io/badge/gitter-join%20chat-brightgreen.svg?style=flat-square)](https://gitter.im/fre5h/transliteration-php)

## Requirements 🧐

* PHP >= 8.1

## Installation 🌱

```composer req fresh/transliteration='~4.0'```

## Available transliteration methods 🎁



From
To
Rules




Ukrainian
Latin

Resolution of the Cabinet of Ministers of Ukraine №55 dated January 27, 2010


https://zakon.rada.gov.ua/laws/show/55-2010-%D0%BF#Text


## Using 👨‍🎓

```php
ukrToLat($text);

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

### Some examples of *Ukrainian-to-Latin* transliteration ℹ️



Ukrainian text
Transliterated text




Володимир
Volodymyr


Богдан
Bohdan


Жанна
Zhanna


Наталія
Nataliia


Олексій
Oleksii


Уляна
Uliana


Юрій
Yurii

## Contributing 🤝

See [CONTRIBUTING](https://github.com/fre5h/transliteration/blob/master/.github/CONTRIBUTING.md) file.