PHP code example of suchmaske / rasmiphize

1. Go to this page and download the library: Download suchmaske/rasmiphize library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

suchmaske / rasmiphize example snippets


// 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); // الڡاٮحه