mpco / english-persian-number
A simple package for convert persian numbers to english numbers and conversely
0.0.1
2017-11-11 07:45 UTC
This package is not auto-updated.
Last update: 2024-12-16 07:14:34 UTC
README
A simple package for convert persian numbers to english numbers and conversely
Install
Via Composer
$ composer require mpco/english-persian-number
Usage
use MPCO\EnglishPersianNumber\Numbers; echo Numbers::toPersianNumbers('1513215'); // ۱۵۱۳۲۱۵ echo Numbers::toPersianNumbers('1513215', true); // ۱,۵۱۳,۲۱۵ echo Numbers::toEnglishNumbers('۱۵۱۳۲۱۵'); // 1513215 echo Numbers::toEnglishNumbers('۱۵۱۳۲۱۵', true); // 1,513,215