All Projects → andrey-helldar → DigitText

andrey-helldar / DigitText

Licence: MIT license
The module allows to translate numbers into a text equivalent. This is important in the billing.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to DigitText

number-to-bengali-word
An amazing package to convert your number to bengali word representation.
Stars: ✭ 22 (+0%)
Mutual labels:  number-to-words, number
prototyped.js
Some common Typescript prototypes
Stars: ✭ 22 (+0%)
Mutual labels:  string, number
number-to-words
convert number into words (english, french, italian, roman, spanish, portuguese, belgium, dutch, swedish, polish, russian, iranian, roman, aegean)
Stars: ✭ 53 (+140.91%)
Mutual labels:  number-to-words, number
common-words
Updated list of the 100 most common words in the English language. Useful for excluding these words from arrays.
Stars: ✭ 13 (-40.91%)
Mutual labels:  string, words
Ssf
📝 Spreadsheet Number Formatter
Stars: ✭ 139 (+531.82%)
Mutual labels:  string, number
is-primitive
Is the typeof value a javascript primitive?
Stars: ✭ 35 (+59.09%)
Mutual labels:  string, number
rxjs-ninja
RxJS Operators for handling Observable strings, numbers, booleans and more
Stars: ✭ 68 (+209.09%)
Mutual labels:  string, number
Number To Words
Number to string standalone PHP library with i18n. Drivers for numbers and currency included.
Stars: ✭ 234 (+963.64%)
Mutual labels:  string, number
DataTypes
Built-in data types
Stars: ✭ 34 (+54.55%)
Mutual labels:  string, number
dobbi
An open-source NLP library: fast text cleaning and preprocessing
Stars: ✭ 21 (-4.55%)
Mutual labels:  string
yup-phone
☎️ Adds a phone number validation check to yup validator using google-libphonenumber
Stars: ✭ 219 (+895.45%)
Mutual labels:  number
vue-number-keyboard
vue-number-keyboard是基于VUE实现的数字键盘插件,当前支持整数、小数数字输入、乱序键盘,demo中给出了常用的验证码、金额数字示例。数字键盘的大小包括字体尺寸支持响应式。
Stars: ✭ 51 (+131.82%)
Mutual labels:  number
textics
📉 JavaScript Text Statistics that counts lines, words, chars, and spaces.
Stars: ✭ 36 (+63.64%)
Mutual labels:  string
String.prototype.trim
ES5 spec-compliant shim for String.prototype.trim
Stars: ✭ 13 (-40.91%)
Mutual labels:  string
rhymes
Give me an English word and I’ll give you a list of rhymes
Stars: ✭ 34 (+54.55%)
Mutual labels:  words
jest-serializer-html-string
A better Jest snapshot serializer for plain html strings
Stars: ✭ 17 (-22.73%)
Mutual labels:  string
obj-to-table
Create a table from an array of objects
Stars: ✭ 15 (-31.82%)
Mutual labels:  string
node-red-contrib-string
Provides a string manipulation node with a chainable UI based on the concise and lightweight stringjs.com.
Stars: ✭ 15 (-31.82%)
Mutual labels:  string
numberbox-card
Replace input_number sliders with plus and minus buttons
Stars: ✭ 61 (+177.27%)
Mutual labels:  number
an-array-of-spanish-words
List of ~636,000 Spanish words
Stars: ✭ 31 (+40.91%)
Mutual labels:  words

DigitText for Laravel 5.5+

The module allows to translate numbers into a text equivalent. This is important in the billing.

digittext

StyleCI Total Downloads Latest Stable Version Latest Unstable Version License

Attention!

This package is abandoned and no longer maintained. The author suggests using the kwn/number-to-words package instead.

Installation

To get the latest version of DigitText, simply require the project using Composer:

$ composer require andrey-helldar/digittext

Instead, you may of course manually update your require block and run composer update if you so choose:

{
    "require": {
        "andrey-helldar/digittext": "^5.0"
    }
}

If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php:

Helldar\DigitText\ServiceProvider::class,

Now, use DigitText Facade or digit_text() helper.

Documentation

You can use a helper

digit_text($number = 0, string $lang = 'en', bool $is_currency = false);

or go directly to a class "Helldar\DigitText\DigitText":

(new DigitText)
    ->get($number = 0, string $lang = 'en', bool $is_currency = false);

Example:

echo digit_text(null);          // zero
echo digit_text(64.23);         // sixty four
echo digit_text(2866);          // two thousands eight hundred sixty six
echo digit_text(2866, 'ru');    // две тысячи восемьсот шестьдесят шесть

echo digit_text(0, 'en', true);     // zero dollar
echo digit_text(64.23, 'en', true); // sixty four dollars 23 cents
echo digit_text(2866, 'en', true);  // two thousands eight hundred sixty six dollars
echo digit_text(2866, 'ru', true);  // две тысячи восемьсот шестьдесят шесть руб

Support Languages

EN - English
DE - Deutsch
RU - Русский
UK - Український

Copyright and License

DigitText was written for the Laravel framework 5.5 or later, and is released under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].