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
Requires
- php: >=7.1.3
- guzzlehttp/guzzle: ^6.3
Requires (Dev)
- phpunit/phpunit: ^7.0
- squizlabs/php_codesniffer: ^2.3
README
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.