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

This package is auto-updated.

Last update: 2025-06-07 04:51:31 UTC


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

  1. Download source OR git clone
  2. 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!"