I am working on a php project where I will generate permalink from a non-english (bengali) string to english charechter. I have used php 'intl' extension but sometimes it automatically stop working and can not load classes. Currently I am using something like that and I wanna get like that.
`<?php
$transliterator = Transliterator::create('Bengali-Latin/BGN');
$bengaliText = 'বাংলা';
$englishText = $transliterator->transliterate($bengaliText);
echo $englishText; // Output: "Bangla"
?>`
is there any other options (not paid) except 'intl' extension by which I can convert phonetically bengali to english?
source https://stackoverflow.com/questions/76740100/bengali-to-localization-phonetic-english-latin
No comments:
Post a Comment