You can install this package using composer. Add this package to your composer.json
:
"require": {
"eskandari/persianrender": "dev-master"
}
\PersianRender\PersianRender::render('کتابخانه ی رندر GD image در php');
Gd image example
$text = \PersianRender\PersianRender::render('فارسی'); //Reversed text for GD
imagettftext ( $image , $size , $angle , $x , $y ,$color , $fontfile , $text );