forget about it using the php intl extension. will be part of the php core in the future.
<?php
$format = datefmt_create('fa_IR@calendar=persian', IntlDateFormatter::FULL, IntlDateFormatter::FULL, 'Asia/Tehran', IntlDateFormatter::TRADITIONAL, 'yyyy/MM/dd HH:mm');
var_dump(datefmt_format($format, time()));
ICU project support if you want to support i18n Persian for all languages.
php intl extension
icu-project.org
source
share