PersianTools PHP is a standalone, library-agnostic PHP Library that enables some of the Persian features for use in the PHP.
- Adding ordinal suffixes
- Converting Persian words to number
- Converting Persian numbers to word
- Adding and removing separator to/from numbers
- Converting Persian numbers to Arabic / English numbers and reverse
- Checking a string has/is Persian
- Validating Iranians national id
- Finding city and province names by national id
- Calculating bills
- Checking IBAN of the bank account (SHEBA)
- Validating ATM card number
- Finding name of banks by ATM card number
- Getting information from vehicle plate
- Fixing and decoding URLs with whitespace
You can install the package via composer:
composer require persian-tools/php-persian-tools
// soon ...
composer test
Please see CHANGELOG for more information what has changed recently.
Thank you for your interest in contributing! Please feel free to put up a PR for any issue or feature request.
If you discover any security related issues, please email ali_4286@live.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.