linguakit/arabic

此包的最新版本(v1.0.0)没有可用的许可信息。

v1.0.0 2022-10-06 23:12 UTC

This package is auto-updated.

Last update: 2024-09-07 03:13:31 UTC


README

目前,这个库只支持阿拉伯语到阿拉伯化

安装

使用Composer

composer require linguakit/arabic

然后在代码中包含LinguaKit Arabic

include 'vendor/autoload.php';
use LinguaKit\Arabic\Arabic;

不使用Composer

  1. 下载源代码或git克隆
  2. 包含LinguaKit Arabic
include 'src/arabic.class.php';

文档

将阿拉伯语转换为阿拉伯化

/*
Uncomment if you are not using composer
include 'src/arabic.class.php';
*/
include 'vendor/autoload.php'; // Comment out if you are not using Composer
use LinguaKit\Arabic\Arabic; // Comment out if you are not using Composer
$arabic = new Arabic();
$text = 'مرحبا بالعالم!';
$arabizi = $arabic->arabizi($text);
echo $arabizi; // Returns "mr7baa baal3aalm!"