hassanhelfi/number-to-arabic

Convert numbers to Arabic words

1.0.0 2023-12-01 21:26 UTC

This package is auto-updated.

Last update: 2024-04-30 00:46:17 UTC


README

Convert numbers to Arabic words in PHP

Installation

composer require hassanhelfi/number-to-arabic

Usage

Important

Use string data type to use numbers.

<?php

use Hassanhelfi\NumberToArabic\NumToArabic;

$arabic_num = NumToArabic::number2Word('1045568'); 
//ملیون وخمسة وأربعین الف وخمسمائة وثمانية وستین
?>

تحويل الأرقام إلى ما يقابلها كتابة بالعربية

استخدم السلاسل النصية (string) عند استعمال ألارقام