PHPackages                             haifahrul/yii2-autonumeric - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. haifahrul/yii2-autonumeric

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

haifahrul/yii2-autonumeric
==========================

autoNumeric is a jQuery plugin that automatically formats currency and numbers as you type on form inputs.

1.2.0(9y ago)03471[1 issues](https://github.com/haifahrul/yii2-autonumeric/issues)BSD-3-ClausePHP

Since May 23Pushed 9y ago1 watchersCompare

[ Source](https://github.com/haifahrul/yii2-autonumeric)[ Packagist](https://packagist.org/packages/haifahrul/yii2-autonumeric)[ RSS](/packages/haifahrul-yii2-autonumeric/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

AutoNumericJs 1.9.43
====================

[](#autonumericjs-1943)

autoNumeric is a jQuery plugin that automatically formats currency and numbers as you type on form inputs.

[![Total Downloads](https://camo.githubusercontent.com/0871bce472c89eab13e5a2ce9ea1e376877ae906a1521d681fdfe244aa964741/68747470733a2f2f706f7365722e707567782e6f72672f68616966616872756c2f796969322d6175746f6e756d657269632f646f776e6c6f616473)](https://packagist.org/packages/haifahrul/yii2-autonumeric)

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist haifahrul/yii2-autonumeric "*"

```

or add

```
"haifahrul/yii2-autonumeric": "*"

```

to the require section of your `composer.json` file.

Formatter Settings (optional)
-----------------------------

[](#formatter-settings-optional)

Default the thousandSeparator and decimalSeparator from Yii::$app-&gt;formatter, you can settings in your configuration file like below:

```
'components' => [
    'formatter' => [
        'class' => 'yii\i18n\formatter',
        'thousandSeparator' => '.',
        'decimalSeparator' => ',',
    ]
]
```

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by:

The complete list of options are below. There are multiple ways of changing the options. To format "123456789.00" to "Rp. 123.456.789" you could do the following:

```
