bushart/numbertowords

A simple modified number to word

1.0 2023-05-19 14:24 UTC

This package is auto-updated.

Last update: 2024-10-19 17:40:05 UTC


README

Laravel package for converting numeric value to english words.

Installation

To install the package, simply require it using Composer:

composer require bushart/numbertowords    

Publish configuration files

php artisan vendor:publish --tag=config

Usage

NumberToWord::number2Word(10000)  Ten Thousand
NumberToWord::number2Word(10250)  Ten Thousand Two Hundred Fifty

Example

Like below:

class TestController extends Controller
{
    public function index() {
            echo NumberToWord::number2Word(10250); //Ten Thousand Two Hundred Fifty 
    }
}

Support

If you encounter any issues with this package, please open an issue on the GitHub repository or contact us at busharthussain@gmail.com.

I hope this example description helps you write your own README file! Let me know if you have any other questions.