Download the PHP package hikuroshi/terbilang-number-to-word without Composer

On this page you can find all versions of the php package hikuroshi/terbilang-number-to-word. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package terbilang-number-to-word

Terbilang Number To Word

Terbilang is a PHP library for converting numbers into words in any language. It provides a simple and flexible way to convert numeric values into their word representations.

Installation

You can install this package via Composer:

Usage

Methods

Terbilang::terbilang(int $number, bool $apart = false): Terbilang

Create a new instance of the Terbilang class with the specified number.

...

Terbilang::simply($simply = true | array): Terbilang

Simplify the word representation based on the specified rules. Examples such as "One Hundred" to "A Hundred"

...

Terbilang::separator(string $separator): Terbilang

Set the separator to use between words.

...

Terbilang::caseStyle(string $caseStyle): Terbilang

Set the case style for the output string.

...

Terbilang::lang(string $language): Terbilang

Set the language for number conversion.

Supported Languages

Language Code Simply Rules
English en ["hundred", "thousand", "million", "billion", "trillion", "quadrillion", "quintillion"]
Indonesian id ["ratus", "ribu", "juta", "milyar", "triliun", "kuardriliun", "kuintiliun"]
Japanese jp -

...

Terbilang::loadLang(array|string $languageData): Terbilang

Load custom language rules for number conversion. This method allows loading custom language rules either from an array or a JSON file. The custom language rules will merge with the default language rules.

If your custom language rules is use different numbering system like japanese, please add "numberingSystem" to the array to specify the numbering system. For example,

Supported Numbering Systems

Numbering System Code
Standart default
Japanese japanese

...

Contributing

Thank you for considering contributing to this project!

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support the Project

If you find this project useful and would like to support its development, please consider making a donation. Your contributions help to cover the costs of development and ensure the project remains well-maintained.

ko-fi

Thank you for your support!


All versions of terbilang-number-to-word with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package hikuroshi/terbilang-number-to-word contains the following files

Loading the files please wait ....