Convert any number from 1 to 13 digits to Persian words
You can install this package using composer.
$ composer require arifi/numbers-to-perisan
Genrate random password.
<?php
use Arifi\NumbersToPersianConverter;
$string = new NumbersToPersianConverter();
$number = 123;
echo $string->convert($number); // یکصد و بيست و سه
$number = 123.43;
echo $string->convert($number); // يكصد و بيست و سه عشاریه چهار سه