linguakit / arabic
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/linguakit/arabic
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!"