php-persian-tools icon indicating copy to clipboard operation
php-persian-tools copied to clipboard

An anthology of a variety of tools for the Persian language in PHP

Persian Tools PHP

PersianTools PHP is a standalone, library-agnostic PHP Library that enables some of the Persian features for use in the PHP.

Latest Stable Version Total Downloads Build Status Code Style Code Coverage License PRs Welcome status


Features

  • [x] Adding ordinal suffixes
  • [x] Converting Persian words to number
  • [x] Converting Persian numbers to word
  • [x] Adding and removing separator to/from numbers
  • [ ] Converting Persian numbers to Arabic / English numbers and reverse
  • [ ] Checking a string has/is Persian
  • [x] Validating Iranians national id
  • [ ] Finding city and province names by national id
  • [ ] Calculating bills
  • [ ] Checking IBAN of the bank account (SHEBA)
  • [x] Validating ATM card number
  • [x] Finding name of banks by ATM card number
  • [ ] Getting information from vehicle plate
  • [x] Fixing and decoding URLs with whitespace

Getting started

You can install the package via composer:

composer require persian-tools/php-persian-tools

Usage

// soon ...

Testing

composer test

Changelog

Please see CHANGELOG for more information what has changed recently.

Contributing

Thank you for your interest in contributing! Please feel free to put up a PR for any issue or feature request.

Security

If you discover any security related issues, please email [email protected] instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.