linguakit / arabic
There is no license information available for the latest version (v1.0.0) of this package.
v1.0.0
2022-10-06 23:12 UTC
Requires
- php: >=7.4.0
README
Right now, this library only supports Arabic to Arabizi.
Installation
With Composer
composer require linguakit/arabic
Then include LinguaKit Arabic in your code:
include 'vendor/autoload.php'; use LinguaKit\Arabic\Arabic;
Without Composer
- Download source OR git clone
- Include the LinguaKit Arabic:
include 'src/arabic.class.php';
Documentation
Convert Arabic to Arabizi
/* 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!"