Skip to content

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

License

Notifications You must be signed in to change notification settings

persian-tools/php-persian-tools

Repository files navigation

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

  • 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

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 ali_4286@live.com instead of using the issue tracker.

Credits

License

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

About

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

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages