diff --git a/README.md b/README.md index 730bdf2..a7efeba 100644 --- a/README.md +++ b/README.md @@ -1 +1,31 @@ -# PersianRender \ No newline at end of file +# PersianRender + + +# Installation + +## Using Composer + +You can install this package using [composer](https://getcomposer.org). Add this package to your `composer.json`: + +``` +"require": { + "eskandari/persianrender": "dev-master" +} +``` + +# manual + +``` + + \PersianRender\PersianRender::render('کتابخانه ی رندر GD image در php'); + +``` + +using in the Gd image +``` + + $text = \PersianRender\PersianRender::render('فارسی'); + + imagettftext ( $image , $size , $angle , $x , $y ,$color , $fontfile , $text ); + +```