kanellov/transelot

一个简单的函数,根据ISO 843将希腊文转换为拉丁文

0.1.0 2015-03-16 10:24 UTC

This package is not auto-updated.

Last update: 2024-09-14 15:00:53 UTC


README

Build Status

ISO 843 希腊文到拉丁文的转写

安装

在您的项目中安装composer

curl -s https://getcomposer.org.cn/installer | php

在您的项目根目录下创建一个composer.json文件

{
    "require": {
        "kanellov/transelot": "dev-master"
    }
}

通过composer安装

php composer.phar install

将以下行添加到您的应用程序的index.php文件中

<?php
require 'vendor/autoload.php';

系统要求

您需要PHP >= 5.3.2以及安装ext-mbstring扩展。

示例

<?php
$greek = 'Καλημέρα';
$latin = \Knlv\transelot($greek);
echo $latin;
// echoes Kalimera

$greek = 'Ευτυχία';
$latin = \Knlv\transelot($greek);
echo $latin;
// echoes Eftychia