PHP Classes
elePHPant
Icontem

Cyrillic to Latin Transliteration: Transliterate Cyrillic text to Latin characters

Recommend this page to a friend!

  Author Author  
Name: Filip Filipov <contact>
Classes: 1 package by
Country: Bulgaria Bulgaria
Age: 41
All time rank: 316822 in Bulgaria Bulgaria
Week rank: 1104 Up6 in Bulgaria Bulgaria Up


  Detailed description   Download Download .zip .tar.gz   Install with Composer Install with Composer  
This class can transliterate Cyrillic text to Latin characters.

It can take a text string with Cyrillic characters and convert those characters to most similar characters in the Latin alphabet.

The input text and output text encodings are configurable.

Details
{startverticalbanner}
Cyrillic to Latin Transliteration

DESCRIPTION
===========
Transliteration of Cyrillic to Latin (GOST 7.79 B).
Can be used for Bulgarian or/and Russian transliteration.
Usefull for creating friendly urls (like blog post title or url).
Important!!! Is case insensitive.


LICENSE
=======
"Cyrillic to Latin Transliteration" is released under the GNU General Public License.
To read the license please visit http://www.gnu.org/licenses/gpl.html


REQUIREMENTS
============
PHP4 or later


HOW TO USE
==========
You can set transliteration for Russian or Bulgarian.
You can set encoding of the input string and encoding of the output string in result.
(see the example.php)

<?php
// Include class file
include('translit.class.php');
$translit = new Transliteration();

// Not not necessarily ('bg' for Bulgarian, 'ru' for Russian). Default transliteration is Bulgarian.
$translit->Table = 'bg';

// Set encoding of the input string. Not necessarily. By default is utf-8.
$translit->EncodeIn = 'cp1251';

// Set encoding of the output string. Not necessarily. By default is utf-8.
$translit->EncodeOut = 'utf-8';

// Sample text
$text = 'Това е примерен текст на кирилица.'; // This is sample text in cyrillic.

// Send text to transliteration
$string = $translit->Translit($text);

// Print transliterated text
echo $string;
?>


CONTACT 
=======
Filip Filipov
E-Mail: primecode@gmail.com
Website: htp://www.xamex.com/

  Classes of Filip Filipov  >  Cyrillic to Latin Transliteration  >  Download Download .zip .tar.gz  >  Support forum Support forum  >  Blog Blog  >  RSS 1.0 feed RSS 2.0 feed Latest changes  
Name: Cyrillic to Latin Transliteration
Base name: cyrillic-translitera
Description: Transliterate Cyrillic text to Latin characters
Version: 1.0
PHP version: 4.0
License: Artistic License
All time users: 480 users
All time rank: 5750
Week users: 0 users
Week rank: 640 Equal
Country specific: This package is specific mainly for applications used in Bulgaria Bulgaria .
 
  Groups   Rate classes User ratings   Applications   Files Files  

  Groups  
Group folder image Localization Internationalization and translations View top rated classes
Group folder image PHP 5 Classes using PHP 5 specific features View top rated classes
Group folder image Text processing Manipulating and validating text data View top rated classes


  User ratings  
Not enough user ratings

  Applications that use this package  
No pages of applications that use this class were specified.

Add link image If you know an application of this package, send a message to the author to add a link here.

  Files folder image Files  
File Role Description
Plain text file example.php Example Example
Plain text file readme.txt Doc. README
Plain text file translit.class.php Class Class File

Install with Composer Install with Composer - Download Download all files: cyrillic-translitera.tar.gz cyrillic-translitera.zip
NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.