PHPackages                             zvermafia/transliteration-laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. zvermafia/transliteration-laravel

ActiveLibrary[API Development](/categories/api)

zvermafia/transliteration-laravel
=================================

Integration of the zvermafia/transliteration with Laravel

v0.1.3(6y ago)011MITPHPPHP &gt;=7.1.3CI failing

Since Feb 21Pushed 6y ago1 watchersCompare

[ Source](https://github.com/zvermafia/transliteration-laravel)[ Packagist](https://packagist.org/packages/zvermafia/transliteration-laravel)[ Docs](https://github.com/zvermafia/transliteration-laravel)[ RSS](/packages/zvermafia-transliteration-laravel/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (4)Versions (5)Used By (0)

Uzbek transliterator for Laravel
================================

[](#uzbek-transliterator-for-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f3e1a025e24a89c836841030a0e79677191ac6f7fef7e15e7365a5100b01e34c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a7665726d616669612f7472616e736c697465726174696f6e2d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/zvermafia/transliteration-laravel)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/9a28f30fd9008f2d7fe03d6f951814e5087729e03e1512446f0f9779f0e4ea30/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7a7665726d616669612f7472616e736c697465726174696f6e2d6c61726176656c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/zvermafia/transliteration-laravel)

Integration of the [zvermafia/transliteration](https://github.com/zvermafia/transliteration) with Laravel.

### Navigation by sections

[](#navigation-by-sections)

- [Install](#install)
- [Setup](#setup)
- [Usage](#usage)
- [Change log](#change-log)
- [Contributing](#contributing)
- [Security](#security)
- [Credits](#credits)
- [License](#license)

Install
-------

[](#install)

Via Composer

```
$ composer require zvermafia/transliteration-laravel
```

Setup
-----

[](#setup)

There are two options for your choice, `alif` and `lotin`. With the option `alif` will be used the [alif.uz](http://alif.uz)'s API. And with the option `lotin` will be used the [lotin.uz](https://lotin.uz)'s API.
Default option is `alif`. But if you want to change this to the `lotin` option then you simply need to add a `TRANSLITERATOR` key with the value `lotin` into the .env file.

```
TRANSLITERATOR=lotin

```

But if you want to extend this package with your own realization then you need to publish package's configuration file and update it with your option.

To publish the configuration file simply execute the `php artisan vendor:publish` command in the project root folder and select the `Zvermafia\TransliterationLaravel\TransliteratorServiceProvider` as a provider.

Usage
-----

[](#usage)

You can use a `LaraTransliterator` facade but I'll show you another way in the example below. Let's assume we have a **PoorWorkerController** with a **translit** method in which we want transliterate a requested text (with POST method) and return the result as JSON.

```
