Download the PHP package zetflake/number-to-words without Composer
On this page you can find all versions of the php package zetflake/number-to-words. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download zetflake/number-to-words
More information about zetflake/number-to-words
Files in zetflake/number-to-words
Download zetflake/number-to-words
More information about zetflake/number-to-words
Files in zetflake/number-to-words
Vendor zetflake
Package number-to-words
Short Description Convert numbers and currency amounts to their written English words representation for Laravel.
License MIT
Homepage https://github.com/zetflake/number-to-words
Package number-to-words
Short Description Convert numbers and currency amounts to their written English words representation for Laravel.
License MIT
Homepage https://github.com/zetflake/number-to-words
Please rate this library. Is it a good library?
Informations about the package number-to-words
Number to Words
Convert numbers and currency amounts into written English words. Built for the "Amount in words" line on invoices, proformas and receipts.
Uses PHP's ext-intl when available and falls back to a bundled pure PHP
speller that produces identical output when it isn't.
Installation
The service provider is auto-discovered. Publish the config if you want to change the defaults:
Usage
Or inject it:
Or use the helpers:
In Blade:
From the CLI:
Notes
convert()truncates decimals. Usecurrency()if you need the fractional part.- Negative values are prefixed with "negative" rather than silently made positive.
- Integers up to quintillions are supported; beyond that the number is returned as-is.
- Set
use_intltofalsein the config to guarantee byte-identical output across servers regardless of whether the intl extension is installed.
Testing
License
MIT
All versions of number-to-words with dependencies
PHP Build Version
Package Version
The package zetflake/number-to-words contains the following files
Loading the files please wait ...