PHP code example of pointergr / greek-to-greeklish
1. Go to this page and download the library: Download pointergr/greek-to-greeklish library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
pointergr / greek-to-greeklish example snippets
ointergr\GreekToGreeklish\GreekToGreeklish;
// Create a new instance
$converter = new GreekToGreeklish();
// Convert a Greek string to Greeklish
$greeklishText = $converter->convert('Καλημέρα Ελλάδα');
echo $greeklishText; // Outputs: "Kalimera Ellada"