Convert arabic strings to their rasm. This includes:
- Removing diacritics
- Removing vocalization marks
Text with diacritics and vocalization marks etc
Text without diacritics (rasm)
rasmifize
is the successor to rasmify. I developed rasmify
with the team of Corpus Coranicum at the Berlin-Brandenburg Academy of Sciences and Humanities.
Since I want to maintain this rasm library, I have decided to publish a successor under my own name.
composer require suchmaske/rasmiphize
You can test it here: rasmifize demo
// Imports
use Rasmiphize\Rasmiphize;
use Rasmiphize\ReplacementRules;
// Code
$arabicString = 'الفَاتِحَة';
$replacementRules = new ReplacementRules();
$rasmiphize = new Rasmiphize($replacementRules);
$rasmiphize->toRasm($arabicString); // الڡاٮحه
// Imports
use Rasmiphize\Rasmiphize;
// Code
$arabicString = 'الفَاتِحَة';
Rasmiphize::rasmiphize($arabicString); // الڡاٮحه