spike/number-to-word

A PHP package for converting numbers to words.

v1.0.4 2023-06-12 17:21 UTC

This package is auto-updated.

Last update: 2024-05-12 19:19:46 UTC


README

A PHP package for converting numbers to words.

A PHP package for converting numbers to words.

This package provides a convenient way to convert numeric values into their corresponding textual representation.

Installation

The preferred method of installation is via [Composer][]. Run the following command to install the package and add it as a requirement to your project's composer.json:

composer require spike/number-to-word

Upgrading to Version 1.0.3

Uses

use Spike\AmountToWord;

$transform = new TransformWord();

echo $transform->toWord(522525.25);

Output

Five Lac Twenty Two Thousands Five Hundred  and Twenty Five  And Two Five Paisa