zvermafia/alif-api-wrapper

This package is abandoned and no longer maintained. The author suggests using the zvermafia/transliteration package instead.

API wrapper for the alif.uz (online transliteration service, uzbek latin <=> uzbek cyrillic)

1.0.1 2019-07-21 13:27 UTC

This package is auto-updated.

Last update: 2020-03-25 14:46:48 UTC


README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

Please instead of this use a zvermafia/transliteration, this repository will be deleted on 2021

API wrapper for the alif.uz (online transliteration service, uzbek latin <=> uzbek cyrillic)

Install

Via Composer

$ composer require zvermafia/alif-api-wrapper

Usage

require __DIR__ . "/vendor/autoload.php";

// Prepare the HTTP client
$client = new GuzzleHttp\Client([
  'base_uri' => Zvermafia\Transliteration\Transliterator::API_BASE_URI,
]);

// Initialize the object
$transliterator = new Zvermafia\Transliteration\Transliterator($client);

$response = $transliterator->setText("Salom, dunyo!")
    ->toCyrillic()
    ->translit();

echo $response->getResult() . PHP_EOL; // It will output: Салом, дунё!

Change log

Please see CHANGELOG for more information on what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please email mohirjon@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.