PHPackages                             h4kuna/exchange-nette - 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. h4kuna/exchange-nette

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

h4kuna/exchange-nette
=====================

Exchange between currencies.

v0.5.2(1y ago)01.7k2MITPHPPHP &gt;=8.2

Since Aug 14Pushed 1y ago1 watchersCompare

[ Source](https://github.com/h4kuna/exchange-nette)[ Packagist](https://packagist.org/packages/h4kuna/exchange-nette)[ Docs](https://github.com/h4kuna/exchange-nette)[ Fund](https://revolut.me/milan2m/czk1000/exchange-nette)[ GitHub Sponsors](https://github.com/h4kuna)[ RSS](/packages/h4kuna-exchange-nette/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)Dependencies (17)Versions (14)Used By (0)

Exchange extension for Nette framework
--------------------------------------

[](#exchange-extension-for-nette-framework)

[![Downloads this Month](https://camo.githubusercontent.com/ca227b2a0d622bfc1c75306ec2a4d73b98acc4980b6e8de2f656edf35b4fa2ce/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f68346b756e612f65786368616e67652d6e657474652e737667)](https://packagist.org/packages/h4kuna/exchange-nette)[![Latest Stable Version](https://camo.githubusercontent.com/bcec515497a60b52189f1bc56c5ea5476ebce9b5f59a597f673f55fe21846d65/68747470733a2f2f706f7365722e707567782e6f72672f68346b756e612f65786368616e67652d6e657474652f762f737461626c653f666f726d61743d666c6174)](https://packagist.org/packages/h4kuna/exchange-nette)[![Coverage Status](https://camo.githubusercontent.com/518f559df0ee1031d3d67351e1e7d29ef79614dface74f1ba5b98a0d2ea55f2e/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f68346b756e612f65786368616e67652d6e657474652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/h4kuna/exchange-nette?branch=master)[![Total Downloads](https://camo.githubusercontent.com/a53661ef19fe33f675b300c59b01987088b2cd601248c71a70066dede2a66aa2/68747470733a2f2f706f7365722e707567782e6f72672f68346b756e612f65786368616e67652d6e657474652f646f776e6c6f6164733f666f726d61743d666c6174)](https://packagist.org/packages/h4kuna/exchange-nette)[![License](https://camo.githubusercontent.com/7a6a8cf27fbadffaa9397b604c3ce0a3caad82557425b5927a4e496adac1bb70/68747470733a2f2f706f7365722e707567782e6f72672f68346b756e612f65786368616e67652d6e657474652f6c6963656e73653f666f726d61743d666c6174)](https://packagist.org/packages/h4kuna/exchange-nette)

This library is extension for Nette Framework and for this [Exchange](//github.com/h4kuna/exchange).

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

[](#installation)

Simple via composer

```
composer require h4kuna/exchange-nette
```

optional dependencies

```
composer require h4kuna/exchange-nette guzzlehttp/guzzle malkusch/lock nette/application nette/caching
```

Registration
------------

[](#registration)

First step is registration extension and set tempDir.

```
extensions:
    exchangeExtension: h4kuna\Exchange\DI\ExchangeExtension
```

Extension is ready to use other configuration are optionally. Default is defined three currencies CZK, EUR and USD. Currencies has default format by [h4kuna/number-format](//github.com/h4kuna/number-format), where is documentation.

Configuration
-------------

[](#configuration)

Format options for currency read [h4kuna/number-format](//github.com/h4kuna/number-format)

```
exchangeExtension:
    currencies:
            czk: # upper / lower code of currency is not important
                decimals: 3
                decimalPoint: '.'
                thousandsSeparator: ','
                zeroIsEmpty: true
                emptyValue: '-'
                zeroClear: true
                mask: '1U'
                showUnitIfEmpty: false
                nbsp: true
                unit: Kč
                round: h4kuna\Format\Number\Round::BY_CEIL

            usd:
                unit: '$'
            gbp: [] # use default format
            foo: null # disable
    driver: # string class of h4kuna\Exchange\Driver\Driver default is Cnb\Day
    session: false # save info about currencies to session, default is only to cookie
    vat: 21 # add number like percent
    strict: true # default enabled, download only defined currencies, example: ['CZK', 'EUR']
    defaultFormat: null # how format currency if format is not defined, value is array like above "currencies.czk"
    managerParameter: 'currency' # is parameter for query, cookie and session if is available
    tempDir: %tempDir% # temporary directory for cache
    filters: # extension define frour filter for latte, you can rename
        currency: currency
        currencyTo: currencyTo
        vat: vat
        vatTo: vatTo
```

Latte
-----

[](#latte)

Now we have four new filters.

```
{=100|currency}
{=100|vat}
{=100|currencyTo}
{=100|vatTo}
```

Request
-------

[](#request)

Create url with parameter currency and change value and check cookie.

```
/?currency=USD
```

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance39

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~224 days

Recently: every ~108 days

Total

13

Last Release

546d ago

PHP version history (3 changes)v0.2.0PHP &gt;=7.1

v0.3.0PHP &gt;=8.0

v0.5.2PHP &gt;=8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/54b4efb9b89167fa3598b1a41477b20387390f4a0fb65b447bd6bb7c30a49020?d=identicon)[h4kuna](/maintainers/h4kuna)

---

Top Contributors

[![h4kuna](https://avatars.githubusercontent.com/u/335722?v=4)](https://github.com/h4kuna "h4kuna (25 commits)")

---

Tags

extensionnette

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/h4kuna-exchange-nette/health.svg)

```
[![Health](https://phpackages.com/badges/h4kuna-exchange-nette/health.svg)](https://phpackages.com/packages/h4kuna-exchange-nette)
```

###  Alternatives

[contributte/translation

Symfony/Translation integration for Nette Framework.

771.8M49](/packages/contributte-translation)[efabrica/phpstan-latte

4511.9k](/packages/efabrica-phpstan-latte)

PHPackages © 2026

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