PHPackages                             adt/nette-forms-currency - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. adt/nette-forms-currency

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

adt/nette-forms-currency
========================

v1.4.2(1y ago)010.6k↓45%2MITPHP

Since May 29Pushed 1y ago13 watchersCompare

[ Source](https://github.com/AppsDevTeam/nette-forms-currency)[ Packagist](https://packagist.org/packages/adt/nette-forms-currency)[ RSS](/packages/adt-nette-forms-currency/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (15)Used By (0)

Currency input for Nette Forms
==============================

[](#currency-input-for-nette-forms)

Nette component for creating currency input.

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

[](#installation)

Install currency input library via composer:

```
composer require adt/nette-forms-currency
```

and register method extension in `bootstrap.php`:

```
\ADT\Forms\Controls\CurrencyInput::register();
```

This allows you to call the method `addCurrency` on class `Nette\Forms\Form` or `Nette\Forms\Container`.

For live formatting functionality its necessary to create custom js.
 You can use our example bellow. Install and link following libraries:
[nette.ajax.js](https://github.com/vojtech-dobes/nette.ajax.js)
[autoNumeric](https://github.com/autoNumeric/autoNumeric)

Initialize autoNumeric on currency input

```
$(function () {
	$.nette.ext('live').after(function ($element) {
		$element.find('.js-nette-forms-currency').each(function () {
			new AutoNumeric(this, JSON.parse(this.dataset.options));
		});
	});
})
```

Usage
-----

[](#usage)

It's very simple:

```
$form->addCurrency('currency', 'label', \ADT\Forms\Controls\CurrencyInput::CURRENCY_CZK);

$form->onSuccess[] = function ($form) {
	$form['currency']->getValue(); // returns eg. from "100 000 000,56 kč" => "100000000.56"
};
```

And in latte:

```
{input currency}
```

To turn on autocomplete in IDE, add `@method CurrencyInput addCurrency($name, $label = null, $currency = null, $language = null)` to your base form.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~133 days

Recently: every ~389 days

Total

13

Last Release

583d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5575ff5b286a1982356d8ed7d8fc9f44385b44ef1108f34ac8c71b106d0c69ec?d=identicon)[michallohnisky](/maintainers/michallohnisky)

![](https://www.gravatar.com/avatar/b14b3ccdfe1f00a01596de650930f4dcb5de964af406a2cb7a9dafdf75decc6a?d=identicon)[appsdevteam](/maintainers/appsdevteam)

---

Top Contributors

[![Walusyak](https://avatars.githubusercontent.com/u/20837611?v=4)](https://github.com/Walusyak "Walusyak (11 commits)")[![thorewi](https://avatars.githubusercontent.com/u/605858?v=4)](https://github.com/thorewi "thorewi (6 commits)")[![MartinMichalica](https://avatars.githubusercontent.com/u/66774882?v=4)](https://github.com/MartinMichalica "MartinMichalica (2 commits)")[![masicek](https://avatars.githubusercontent.com/u/1160736?v=4)](https://github.com/masicek "masicek (1 commits)")[![samuelg0rd0n](https://avatars.githubusercontent.com/u/4357381?v=4)](https://github.com/samuelg0rd0n "samuelg0rd0n (1 commits)")[![vpalousek](https://avatars.githubusercontent.com/u/108008045?v=4)](https://github.com/vpalousek "vpalousek (1 commits)")

### Embed Badge

![Health badge](/badges/adt-nette-forms-currency/health.svg)

```
[![Health](https://phpackages.com/badges/adt-nette-forms-currency/health.svg)](https://phpackages.com/packages/adt-nette-forms-currency)
```

###  Alternatives

[nette/schema

📐 Nette Schema: validating data structures against a given Schema.

1.0k336.4M125](/packages/nette-schema)[nette/forms

📝 Nette Forms: generating, validating and processing secure forms in PHP. Handy API, fully customizable, server &amp; client side validation and mature design.

54013.2M450](/packages/nette-forms)[smartemailing/types

Lightweight collection of handy PHP value objects

9368.7k1](/packages/smartemailing-types)[uestla/recaptcha-control

reCAPTCHA control for Nette Framework forms

26572.0k1](/packages/uestla-recaptcha-control)[kdyby/validator

Integration of Symfony/Validator into Nette Framework

10128.1k4](/packages/kdyby-validator)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
