persian-tools/php-persian-tools

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

dev-master 2021-03-25 19:11 UTC

This package is not auto-updated.

Last update: 2024-11-02 10:17:48 UTC


README

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.