2017 © Pedro Peláez
 

library persian-text

A lightweight library for persian language localization.

image

imahmood/persian-text

A lightweight library for persian language localization.

  • Friday, April 27, 2018
  • by imahmood
  • Repository
  • 2 Watchers
  • 1 Stars
  • 2 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

PersianText

Latest Stable Version GitHub Tests Action Status Total Downloads License, (*1)

PersianText is a lightweight library for persian language localization., (*2)

Requirements

  • PHP 8.1 or greater
  • intl PHP extension

Installation

You can install this package via Composer:, (*3)

``` bash $ composer require imahmood/persian-text, (*4)


## Usage ``` php $string = '0123456789 - ۰١٢٣٤٥٦٧٨٩ - ي ك ة'; echo PersianText::text($string); output: ۰۱۲۳۴۵۶۷۸۹ - ۰۱۲۳۴۵۶۷۸۹ - ی ک ه echo PersianText::onlyArabicChars($string); output: 0123456789 - ۰۱۲۳۴۵۶۷۸۹ - ی ک ه echo PersianText::onlyNumbers($string); output: ۰۱۲۳۴۵۶۷۸۹ - ۰۱۲۳۴۵۶۷۸۹ - ي ك ة echo PersianText::toEnglishNumber($string); output: 0123456789 - 0123456789 - ي ك ة echo PersianText::money('123456789'); output: 123٬456٬789 echo PersianText::asSpellout(123456); output: صد و بیست و سه هزار و چهارصد و پنجاه و شش

License

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

The Versions

27/04 2018

dev-master

9999999-dev

A lightweight library for persian language localization.

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-intl *

 

by Mahmood Dehghani

27/04 2018

1.0

1.0.0.0

A lightweight library for persian language localization.

  Sources   Download

MIT

The Requires

  • php >=5.4.0
  • ext-intl *

 

by Mahmood Dehghani