amirhxssein / persian-digit
A simple tool for converting Persian digits to English digits and vice versa.
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/amirhxssein/persian-digit
Requires (Dev)
- phpunit/phpunit: ^11.1
This package is auto-updated.
Last update: 2025-12-20 15:44:35 UTC
README
Description
This PHP package allows you to convert Persian digits to English digits and vice versa. It's a handy tool for developers working with Persian and English digit representations.
Installation
You can install the package via Composer. Run the following command in your terminal:
composer require amirhxssein/persian-digit
Usage
use Amiros\PersianDigit\PersianDigit; // Persian To English $text = '۰۱۲۳۴۵۶۷۸۹'; $convertedText = PersianDigit::convert($text); // English to Persian $text = '0123456789'; $convertedText = PersianDigit::convert($text, "fa");
License
The Laravel framework is open-sourced software licensed under the MIT license.