All Projects → vyuldashev → nova-money-field

vyuldashev / nova-money-field

Licence: other
Money Field for Laravel Nova

Programming Languages

Vue
7211 projects
PHP
23972 projects - #3 most used programming language
javascript
184084 projects - #8 most used programming language
SCSS
7915 projects

Projects that are alternatives of or similar to nova-money-field

Money Open Exchange Rates
A gem that calculates the exchange rate using published rates from open-exchange-rates. Compatible with the money gem.
Stars: ✭ 87 (+22.54%)
Mutual labels:  money, currency
Django Prices
Django fields for the prices module
Stars: ✭ 135 (+90.14%)
Mutual labels:  money, currency
Javamoney Lib
JavaMoney financial libraries, extending and complementing JSR 354
Stars: ✭ 104 (+46.48%)
Mutual labels:  money, currency
Currencyconverter
Utilities for doing currency conversion with the Money library
Stars: ✭ 78 (+9.86%)
Mutual labels:  money, currency
Jackson Datatype Money
Extension module to properly support datatypes of javax.money
Stars: ✭ 165 (+132.39%)
Mutual labels:  money, currency
Countries
Countries - ISO 3166 (ISO3166-1, ISO3166, Digit, Alpha-2 and Alpha-3) countries codes and names (on eng and rus), ISO 4217 currency designators, ITU-T E.164 IDD calling phone codes, countries capitals, UN M.49 regions codes, ccTLD countries domains, IOC/NOC and FIFA letters codes, VERY FAST, NO maps[], NO slices[], NO init() funcs, NO external links/files/data, NO interface{}, NO specific dependencies, Databases/JSON/GOB/XML/CSV compatible, Emoji countries flags and currencies support, full support ISO-3166-1, ISO-4217, ITU-T E.164, Unicode CLDR and ccTLD standarts.
Stars: ✭ 85 (+19.72%)
Mutual labels:  money, currency
Exchanger
🏢 Currency exchange rates framework for PHP
Stars: ✭ 133 (+87.32%)
Mutual labels:  money, currency
Money
A money and currency library for PHP
Stars: ✭ 855 (+1104.23%)
Mutual labels:  money, currency
Currency.js
A javascript library for handling currencies
Stars: ✭ 2,214 (+3018.31%)
Mutual labels:  money, currency
Ngx Currency
📦 Currency mask module for Angular
Stars: ✭ 161 (+126.76%)
Mutual labels:  money, currency
Prices
Python price handling for humans.
Stars: ✭ 248 (+249.3%)
Mutual labels:  money, currency
CurrencyEditText
A simple EditText input designed to input decimal and currency values.
Stars: ✭ 18 (-74.65%)
Mutual labels:  money, currency
Swap
💱 Currency exchange rates library
Stars: ✭ 1,195 (+1583.1%)
Mutual labels:  money, currency
Jsr354 Ri
JSR 354 - Moneta: Reference Implementation
Stars: ✭ 223 (+214.08%)
Mutual labels:  money, currency
Android Money
Simple money and currency converter library for android.
Stars: ✭ 66 (-7.04%)
Mutual labels:  money, currency
Frankfurter
💱 Currency data API
Stars: ✭ 123 (+73.24%)
Mutual labels:  money, currency
Money
A precise, type-safe representation of a monetary amount in a given currency
Stars: ✭ 817 (+1050.7%)
Mutual labels:  money, currency
Go Money
Go implementation of Fowler's Money pattern
Stars: ✭ 887 (+1149.3%)
Mutual labels:  money, currency
Easymoney
Library for operating with monetary values in JavaScript and Typescript 💵
Stars: ✭ 145 (+104.23%)
Mutual labels:  money, currency
Cash Cli
💰💰 Convert currency rates directly from your terminal!
Stars: ✭ 168 (+136.62%)
Mutual labels:  money, currency

Money Field for Laravel Nova

Latest Version on Packagist Total Downloads

screenshot 1

Installation

You can install the package in to a Laravel app that uses Nova via composer:

composer require vyuldashev/nova-money-field

Usage

In resource:

// ...
use Vyuldashev\NovaMoneyField\Money;

public function fields(Request $request)
{
    return [
        // ...
        Money::make('Balance'),
    ];
}

USD currency is used by default, you can change this by passing second argument:

Money::make('Balance', 'EUR'),

You may use locale method to define locale for formatting value, by default value will be formatted using browser locale:

Money::make('Balance')->locale('ru-RU'),

If you store money values in database in minor units use storedInMinorUnits method. Field will automatically convert minor units to base value for displaying and to minor units for storing:

Money::make('Balance', 'EUR')->storedInMinorUnits(),

If you need to use a name that doesn't convert to the column name (eg 'Balance' as name and remaining_balance as column) you can pass this as the 3rd argument to the make/constructor.

Please Note: that this, along with all field column names, should be present and usable within your model class else you may encounter SQL errors.

Money::make('Balance', 'EUR', 'remaining_balance'),
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].