2017 © Pedro Peláez
 

library arabic-numbers

Library to convert Latin numbers to Arabic and vice versa

image

meezaan/arabic-numbers

Library to convert Latin numbers to Arabic and vice versa

  • Thursday, August 31, 2017
  • by meezaan
  • Repository
  • 1 Watchers
  • 0 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

CircleCI, (*1)

بِسْمِ اللهِ الرَّحْمٰنِ الرَّحِيْمِ, (*2)

Arabic Numbers

This library helps convert between latin and arabic numerals and vice versa., (*3)

Installation

To install:, (*4)

composer require meezaan/arabic-numbers

Usage

To use the library in your apps, make sure the composer autoload file is already included. Then:, (*5)

use ArabicNumbers\Numbers;

// Latin to Arabic
$arabic = Numbers::latinToArabic(157); // returns ١٥٧

// Arabic to latin
$latin - Numbers::arabicToLatin(١٥٧); // returns 157

// Arabic to HTML
$html = Numbers::ArabicToHtml(١٥٧); // returns ١٥٧

Unit Tests

These are included in the tests folder. To run them, make sure you've already run composer install. Then:, (*6)

php vendor/bin/phpunit --bootstrap vendor/autoload.php tests/

Happy days., (*7)

The Versions

31/08 2017

dev-master

9999999-dev

Library to convert Latin numbers to Arabic and vice versa

  Sources   Download

The Requires

  • php ^7.0

 

The Development Requires

by Meezaan-ud-Din Abdu Dhil-Jalali Wal-Ikram

23/07 2017

1.0

1.0.0.0

Library to convert Latin numbers to Arabic and vice versa

  Sources   Download

The Requires

  • php ^7.0

 

by Meezaan-ud-Din Abdu Dhil-Jalali Wal-Ikram