PHPackages                             yurizoom/moonshine-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. yurizoom/moonshine-currency

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

yurizoom/moonshine-currency
===========================

Currency field for MoonShine

2.1.1(7mo ago)39862MITPHPPHP ^8.2

Since May 3Pushed 7mo ago1 watchersCompare

[ Source](https://github.com/yurizoom/moonshine-currency)[ Packagist](https://packagist.org/packages/yurizoom/moonshine-currency)[ RSS](/packages/yurizoom-moonshine-currency/feed)WikiDiscussions main Synced today

READMEChangelog (5)Dependencies (1)Versions (7)Used By (0)

Currency field for MoonShine
============================

[](#currency-field-for-moonshine)

Поле с валютой для MoonShine. Наследует поле Number.

### Поддержка версий MoonShine

[](#поддержка-версий-moonshine)

MoonShineПакет2.0+1.0+3.0+2.0+Установка
---------

[](#установка)

```
$ composer require yurizoom/moonshine-currency

```

Настройки
---------

[](#настройки)

Если необходимо изменить настройки, добавьте в файле config/moonshine.php:

```
[
    'currency' => [
        // Код валюты по-умолчанию (ISO 4217)
        'default' => 'RUB',
        // Доступные коды валют. Используются, если код валюты хранится в БД
        'currencies' => [
            'RUB',
            'USD',
            'EUR',
        ],
    ]
]
```

Использование
-------------

[](#использование)

В базе данных денежная единица хранится в минимальном значении. Например, 100₽ = 10000.

При отображении значение будет делиться на 100.

```
use YuriZoom\MoonShineCurrency\Fields\Currency;

Currency::make('Label');
```

Для указания поля, где хранится код валюты:

```
use YuriZoom\MoonShineCurrency\Fields\Currency;

Currency::make('Label')->currency('column');
```

Код валюты должен соответствовать ISO 4217

Лицензия
--------

[](#лицензия)

[The MIT License (MIT)](LICENSE).

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance62

Regular maintenance activity

Popularity24

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% 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 ~111 days

Recently: every ~69 days

Total

6

Last Release

234d ago

Major Versions

1.x-dev → 2.0.02025-03-06

### Community

Maintainers

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

---

Top Contributors

[![yurizoom](https://avatars.githubusercontent.com/u/18616112?v=4)](https://github.com/yurizoom "yurizoom (10 commits)")[![DissNik](https://avatars.githubusercontent.com/u/12373059?v=4)](https://github.com/DissNik "DissNik (1 commits)")[![Fulliton](https://avatars.githubusercontent.com/u/22916635?v=4)](https://github.com/Fulliton "Fulliton (1 commits)")

---

Tags

currencymoonshine

### Embed Badge

![Health badge](/badges/yurizoom-moonshine-currency/health.svg)

```
[![Health](https://phpackages.com/badges/yurizoom-moonshine-currency/health.svg)](https://phpackages.com/packages/yurizoom-moonshine-currency)
```

###  Alternatives

[brick/money

Money and currency library

1.9k41.8M157](/packages/brick-money)[florianv/swap

PHP currency conversion library for retrieving exchange rates from 30+ providers, with caching and fallback.

1.3k6.8M23](/packages/florianv-swap)[cknow/laravel-money

Laravel Money

1.0k4.8M31](/packages/cknow-laravel-money)[akaunting/laravel-money

Currency formatting and conversion package for Laravel

7865.8M47](/packages/akaunting-laravel-money)[webpatser/laravel-countries

Modern Laravel Countries package providing ISO 3166-2, ISO 3166-3, currency, capital and more for all countries. Compatible with Laravel 11.x, 12.x, and 13.x.

8602.9M10](/packages/webpatser-laravel-countries)[kwn/number-to-words

Multi language standalone PHP number to words converter. Fully tested, open for extensions and new languages.

4375.4M23](/packages/kwn-number-to-words)

PHPackages © 2026

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