linguakit / arabic
此包的最新版本(v1.0.0)没有可用的许可信息。
v1.0.0
2022-10-06 23:12 UTC
Requires
- php: >=7.4.0
README
目前,这个库只支持阿拉伯语到阿拉伯化。
安装
使用Composer
composer require linguakit/arabic
然后在代码中包含LinguaKit Arabic
include 'vendor/autoload.php'; use LinguaKit\Arabic\Arabic;
不使用Composer
- 下载源代码或git克隆
- 包含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!"